This 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. …


This 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…


In 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. …


While 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…


While 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…


Last 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…


This 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. …


Throughout 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…


This 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…


This week I continued down the HackerRank interview preparation kit. The next challenge to tackle is Counting Valleys. This function will take in a string made up of a combination of “U” and “D” representing up and down, respectively. This string represents a hike that somebody takes on a trail…

Adam James

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store