JavaScript has a built-in Math library that I found very helpful many times already (refer to a few of my algorithm review problems). Math is a built-in object, not a function. It has properties and methods of static mathematical constants and functions.

**Math.ceil(x)**This method rounds a number (usually a decimal)…

This problem is found on LeetCode. I’ve done a lot of reversing strings and numbers so I thought this problem should be easy. It wasn’t…I found out here that reading closely is important even if you think you know what you’re doing.

Given a signed 32-bit integer

`x`

, return`x`

…

React and React Native have similarities and differences. They are popular JavaScript frameworks that were developed by the same company. They both HEAVILY use class and functional components.

It’s a JavaScript frontend library used to build the user interface on web applications. It is an open-source Javascript library developed by…

A new week and a new problem. I found this problem on LeetCode. I had fun with this problem mainly because it had something to do with sweets.

Given the array

candiesand the integerextraCandies, wherecandies[i]represents the number of candies that theithkid has.For each…

*****Disclaimer:** **If you are just getting started with React Native and have not set up your first React Native project yet, read ****my blog**** on how to getting started*****

React Native has built-in components for us to use when making our apps. They can be found in the React Native…

Another week and yet another algorithm problem from the Colt Steele Udemy course. This week I was working on multiple pointers, a technique I can use to solve problems without having to doubly loop. …

React Native is a mobile development framework written in JavaScript. It uses React.js which is a JavaScript library for building user interfaces. It also has its own special components that know how to communicate with the native device’s platform so you can build a user interface. Mobile devices don’t use…

This week I was working on another algorithm problem from my Colt Steele Udemy course. This is another frequency counter type problem but this time I’m working to see if two strings are anagrams of each other.

Given two strings, write a function to determine if the second string is…

This week I was worked on an algorithm problem I came across on one of my Udemy courses by Colt Steele. I worked on how to problem-solve common algorithm question types. …

I’ve decided that I will start reviewing some of the algorithm problems I come across while practicing on LeetCode.

Given an array

`nums`

. We define a running sum of an array as`runningSum[i] = sum(nums[0]…nums[i])`

.Return the running sum of

`nums`

.

**Input:** nums = [1,2,3,4]**Output:** [1,3,6,10]**Explanation:** Running sum is obtained…