Photo by Goran Ivos on Unsplash

NOTE: Skip down to “Solution” if you just need the fix to the error.

I recently decided to try my hand at building a basic iOS mobile app. Given that I have previous knowledge of React, I decided it would be best to build the app using React Native. I used React Native documentation to set up my computer environment.

NOTE: if you want to develop a proper iOS app, you will need a Mac. There is a way to do it with Windows using Expo, but it's not as good for production apps per React native’s documentation.

The only…

This problem comes from Leetcode’s Hash Table Explore Card under the Practical Application — Hash Set chapter.

In Happy Number:

Write an algorithm to determine if a number n is happy.

A happy number is a number defined by the following process:
- Starting with any positive integer, replace the number by the sum of the squares of its digits.
- Repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1.
- Those numbers for which this process ends in 1 are happy.

Return true if

Hello everyone. I thought I would discuss today my thoughts on coding challenges sent by companies after applying to them. I have received a mixture of both. First is when a company will send a timed coding challenge assessment that is basically 2–4 algorithm questions. The other coding challenges are companies either want me to build a project out or fix bugs/issues that are in the code.

As a boot camp graduate, we never really covered algorithms, so getting coding challenges like this can be tough. More so because they almost require memorization of code that you have to learn…

Photo by Markus Spiske on Unsplash

Hello! I have another algorithm problem for us to cover. This problem comes from Leetcode’s Easy Collection of Top Interview Questions.

So in Valid Palindrome:

Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.


Input: s = "A man, a plan, a canal: Panama"
Output: true
Explanation: "amanaplanacanalpanama" is a palindrome.
Input: s = "race a car"
Output: false
Explanation: "raceacar" is not a palindrome.

Taking a look at the examples, we want only the alphanumeric characters in the string and it should be the same string both forward and backward…

Photo by Markus Spiske on Unsplash

Hello! Welcome back for another algorithm problem. This problem actually builds off lessons learned from the previous algorithm I wrote about. You can check that out here: Merge Sorted Array.

This problem comes from LeetCode’s Introduction to Data Structures: Arrays 101. So in Height Checker:

A school is trying to take an annual photo of all the students. The students are asked to stand in a single file line in non-decreasing order by height. Let this ordering be represented by the integer array expected where expected[i] is the expected height of the ith student in line.

You are given an…

From Sai Kiran Anagani on Unsplash

As a fresh graduate of the Flatiron bootcamp, I have been grinding away at algorithm problems and applying for any junior developer positions I can find. Most of the time I get that automated message that they are moving on from my application. A couple of weeks ago I finally received my first technical interview (yay!).

It was a great feeling not only to get my first one but also because the only way I can get better at interviewing is by actually doing interviews. …

Photo by Tianyi Ma on Unsplash

Hello again! I am back with another algorithm problem and solution. The first problem I wrote about was checking to see if an array contains duplicates. You can check it out here: Contains Duplicates. Just a reminder, I am solving the code using JavaScript.

This problem also comes from Leetcode’s Easy Collection of Top Interview Questions. So in Merge Sorted Array:

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively.

Merge nums1 and nums2 into a single array sorted in…

Photo by Markus Spiske on Unsplash

Hello, hello! As I continue my job search, I am practicing my algorithm questions on Leetcode. So, I thought I would blog about some Leetcode problems as I solve them.

As a Bootcamp graduate, I did not get much practice in algorithms, so it has been a very fun and sometimes frustrating trial and error in recognizing patterns, optimizing my code to be faster (looking at you Big-O), learning how to break down a problem, and sometimes implementing neat math tricks to solve these algorithm problems. I have been practicing them using JavaScript.

As I’m relatively new to algorithm problems…

You’ve just finished up building your website, web application, frontend, etc and now you want to deploy it using Google’s Firebase. The below instructions are for GatsbyJS. If you are using Create React App, scroll to the bottom to see the differences.

Setting Up Firebase Account & Firebase Project

  1. If you don’t already, create an account on Firebase (if you have a Google account, then you can automatically sign in with it).

2. Then you will want to click Go To Console on the top right-hand side of the window

3. Click Add Project tile

As any other recent graduate of a coding bootcamp, I set to work on my personal portfolio website. Having just been taught React, I wanted to stick with building my website using the skills I had just learned. I had previously created an app using Create-React-App, but since my portfolio website strictly was content-based and I found that GatsbyJS was better for static websites (though it can do a lot more! Gatsby sites are still fully functioning React apps).

So while I was building my website, I wanted to employ a card design for my projects. Essentially each “card” would…

Kunal Shah

Full Stack Web Developer | Flatiron School Software Engineering Graduate | TV Show Enthusiast. Pittsburgh Sports Fanatic.

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