Archive · 2022–2024
Notes from a chapter spent learning software in public.
These posts are preserved as personal history. They are snapshots of what I was learning at the time, not documentation I’m actively maintaining.
original entries
preserved
2022
Binary to Text (ASCII) Conversion
Convert binary to text using the ASCII character set.
Compare Two Array in JavaScript - JavaScript Snippets
How to compare two arrays in JavaScript?
Topsy Turvy Numbers
Return all the topsy-turvy numbers between two numbers.
Coconut Communication
Communication is key to a healthy relationship. Learn how to communicate with your coconut in the form of bits.
Convert Characters to 8-bit - JavaScript Snippets
Make a string of characters into 8-bit characters!
Snippet - Diagonal Elements
How to get diagonal elements from a matrix?
Identical Row and Column?
Are any of the columns identical to any of the rows in a 2D matrix?
Working with factorials in Javascript - Alt Facts, Semi Facts
Working with different types of factorials in Javascript
Numbers Up and Down, Ascending and Descending Javascript Snippet
How to get the numbers up and down starting from a number
Super Reduced String
Delete all repeating characters in a string.
Odd One Out
See if all words are the same length except for only one.
Averages Methods - Extending the Math Object
Adding our own to the Math object
Special Pythagorean Triplet
Solve for the product of the Pythagorean triple that sums to 1000.
Game of Thrones Character Titles
tags: strings, map, filter, javascript, ternary operator, regex, push, Edabit, toLowerCase, toUppercase
Know Your Neighbor
Is the number surrounded by pluses?
Does the Triangle Fit into the Triangular Hole?
Will the triangle-shaped piece fit into the triangular hole?
Harshad Numbers
More fun with numbers - Harshad numbers are positive numbers that are divisible by the sum of their digits.
Happy Numbers
Determine if a number is a happy number or not.
Simon Says
Only perform an operation if Simon says!
RegEx Character Classes XII
A tab and space challenge with Regex?
Working with Numbers and Arrays - Pandigital Numbers
Does this number have all of the digits 0-9?
Working with Nested Arrays
Let's Figure Out to Get the Length of a Nested Array
Milliseconds to Human Readable Time
Convert milliseconds to human readable time with JavaScript
Working with Dates in JavaScript
How to use dates in JavaScript
Two Ways to Solve Seven Boom!
Determine if an array contains 7, with the long way and a more concise way
Is It a Leap Year?
Determine if a year is a leap year using the ternary operator
Wanda
Fun pictures of my dog Wanda!
JavaScript Snippet - Reverse Words in A String
Here's another fun JavaScript challenge with one solution.
Filter the Smileys 😀
Let's start off with some fun JavaScript!
Regular Expressions - Character Classes
Here's one way to use regular expressions (regex) to solve the problem of finding a sequence of characters in a string.
JavaScript Snippet - Test for Automorphic Numbers!
We're going to write a function that will test if a number is automorphic.
2023
How Subnet Masking Works
How does subnet masking work?
What are hooks in React?
What are hooks in React and how do we use them, specifically useState and useEffect?
What is an Algorithm?
A brief explanation of what an algorithm is.
Leetcode 128 - Longest Consecutive Sequence
A solution for Leetcode Problem 128.
Binary Search Tree Breadth First Traversal
tags: JavaScript, data structures, binary search tree, breadth first
Binary Search Tree Depth First Traversal
tags: JavaScript, data structures, binary search tree, depth first, recursion
Leetcode 1 - Two Sum
A solution with explanation for Leetcode Problem 1, two sum.
Reduce Under the Hood
Here is a way to replicate the reduce method.
What is a Collection in Javascript?
A collection is a common data structure in JavaScript that you may already be familiar with.
Using React to dynamically create elements
One way to dynamically create elements in React.
What are props in React?
A brief introduction to props in React.
Mental Models
Learn what mental models are and how they can help you better understand complex concepts.
The Rest Parameter vs The Spread Operator in Javascript
A brief explanation of the rest parameter and distinguishing it from the spread operator in Javascript.
Cloning Objects in JavaScript
You can clone objects in JavaScript, but it doesn't work the way you might expect.
JavaScript Closures - Multiplier
Keep count of numbers passed in using closure.
JavaScript Closures Practice Problems
Keep count of numbers passed in using closure.
JavaScript Closures - A Brief Explanation
A brief explanation of closures in JavaScript
JavaScript Closures - getCounter
Increment and decrement a number using objects and closures.
JavaScript Closures - numCount
Count how many numbers are in a string.
JavaScript Closures - Sums
Keep count of numbers passed in using closure.
Return an array of unique values
Here are two ways to return an array of unique values.
JavaScript Recursion - countDigits
Count the digits of a number using recursion.
JavaScript Recursion - findMax
Find the max value of an array using recursion.
JavaScript Recursion - Inclusive Array Ranges
Return the numbers between two numbers, including the two given numbers.
JavaScript Recursion Practice Problems
Some practice problems and a brief outline on how recursion works.
JavaScript Recursion - Array Product Except Current Index
Create an array of the products of all array elements except for the current element.
Movie Constructor - OOP problem
Create a movie constructor function!
Restaurant Constructor - OOP problem
Create a Restaurant Constructor and create the menu!
JavaScript OOP Practice Problems
Some problems you can use to practice Javascript Object-Oriented Programming
Student Constructor - Medium OOP problem
Create the Student Constructor
JavaScript OOP - Car Rental Simulation
Create Car, Rental and Customer constructor functions that simulate a car rental situation.
JavaScript OOP - Stack
Create a Stack constructor function.
Leetcode 347 - Top K frequent elements
A solution for Leetcode Problem 347.
Leetcode 628 - Maximum Product of Three Numbers
A solution for Leetcode Problem 628.
Leetcode 36 - Valid Sudoku
A solution for Leetcode Problem 36.
Extending an Object in JavaScript
Here's how you can add properties to an object in JavaScript, from another object iteratively with reduce.
Using Closure to Calculate Large Fibonacci Numbers
Here's a way to calculate very large numbers from the Fibonacci sequence using closure/memoization.
JavaScript OOP - Bank Account Class
Create a Bank Account Class