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.
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
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.
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…
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"
Explanation: "amanaplanacanalpanama" is a palindrome.Input: s = "race a car"
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…
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[i]is the expected height of the
ithstudent in line.
You are given an…
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. …
This problem also comes from Leetcode’s Easy Collection of Top Interview Questions. So in Merge Sorted Array:
You are given two integer arrays
nums2, sorted in non-decreasing order, and two integers
n, representing the number of elements in
nums2into a single array sorted in…
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 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.
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…
Full Stack Web Developer | Flatiron School Software Engineering Graduate | TV Show Enthusiast. Pittsburgh Sports Fanatic.