Oct 31, 2021LeetCode: Rotate ArrayThis week I’m working on the LeetCode Reverse Array problem. This function will accept an array of numbers and an integer, the array will rotate to the right by the amount given by the integer. …3 min read3 min read
Oct 24, 2021LeetCode: Valid AnagramThis week’s coding challenge comes from Leetcode, the Valid Anagram challenge. The function you’re required to create in this challenge will take in two different strings and return true if they’re anagrams of each other. In this blog post I’ll break down two different ways to solve this problem. …3 min read3 min read
Oct 15, 2021LeetCode Challenge: First Unique Character in a StringThis week’s coding challenge is the First Unique Character in a String challenge on LeetCode. This challenge’s instructions are relatively straightforward, you want tofind the first character in a given string and return the index of the character in the string that is completely unique, or doesn’t repeat later in…3 min read3 min read
Oct 10, 2021Firebase DatabasesIn 2014, Google acquired a company called Firebase, which develops an API that stores data from mobile and web applications on a unified cloud. Since it was acquired, Google has built it into a multipurpose app development platform. …3 min read3 min read
Sep 30, 2021React Hooks: useReducerWhile updating my React project to use hooks, I used a few of the more essential hooks. From React, I used useState to manage state and useEffect to handle side effects, and from Redux I used useDispatch to dispatch to my redux store and useSelector to select the portion of…3 min read3 min read
Sep 24, 2021React: Search ComponentWhile I was building out my final React project for Flatiron School, I had a list of features that sat under a “might get to eventually but not the end of the world if I don’t get to them before the due date” list. These were mostly generic features that…3 min read3 min read
Sep 19, 2021LeetCode Two Sum Solution: ObjectsLast week, I wrote about a solution to LeetCode’s Two Sum problem. My solution passed all of the test cases, to return the indexes of two elements in an array that add up to a target sum, but wasn’t exactly an efficient solution. I used a nested loop to complete…2 min read2 min read
Sep 11, 2021LeetCode Challenge: Two SumThis week, I’m working on the Two Sum LeetCode challenge. This challenge requires you to write a function that takes in an array of numbers, nums, and an integer, target, that two of the elements in the array will add up to. …2 min read2 min read
Sep 4, 2021JavaScript Reverse MethodThroughout learning more about JavaScript and coding there has been one JavaScript method that I haven’t really been able to grasp completely, the reduce method. Reduce takes every element in an array and returns a reduced, single value. In Mozilla’s web documentation, reduce() takes in an array, executes a callback…3 min read3 min read
Aug 28, 2021Valid Palindrome Using Every MethodThis week, I decided to return to the Valid Palindrome challenge I wrote about a couple months ago. The solution I came up with was decently efficient, faster than about 66 percent of all passing submissions, and I wasn’t able to improve on that number, but my new solution was…2 min read2 min read