This 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. For example, if the array is [1,2,3,4,5,6,7] and the given integer is 3, the final…

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

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. Personally, I’ve used Firebase as an alternative to building a backend on…

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…

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. The function needs to return the indices of…

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…

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