For this blog, I’ll be going over how to solve the Fibonacci sequence problem using Recursion. Note that I’ll be going over this problem using JavaScript!

Here’s a screenshot of the prompt:

The prompt is asking us to create a function that takes in a number `n`

and `return`

the calculated value of `F(n)`

. The examples for this prompt do a great job in demonstrating what the inputs and outputs should be for this question. For example 1, we can see that the input value is `n = 2`

, which means that it’s actually `F(2)`

. Using the equation provided by…

For this blog, I’ll be going over another solution that solves the steps problem. Last week, I wrote a blog on how to solve this problem. Be sure to check out the resources section at the bottom of this blog!

As a reminder of what we’re trying to solve, here’s a screenshot of the prompt:

Console logging `“#”`

depends on the input that you provide. The examples from the screen shot above do a great job at showing what the input and output values should be for this problem. …

For this blog, I’ll be going over an algorithm problem in which we have to console log `#`

which demonstrates a step. Here’s a screenshot of the prompt:

Console logging `#`

depends on the input that you provide. The examples from the screenshot above do a great job at showing what the input and output values should be for this problem. If our input is `4`

then this is what the output should be:

##########

In this case, we can look at the output as some form of table with rows and columns. If we look at…

For this blog, I’ll be going over an algorithm problem in which we have to check if two strings are anagrams. I’ve solved and wrote a blog on a similar problem, be sure to check out the resource section at the bottom of this blog! Here’s a screenshot of the prompt:

An anagram is a word or phrase that’s formed by rearranging the letters of another word or phrase. The examples from the screen shot above do a great job at showing what the input and output values should be for this problem. In this case, we are checking to…

For this blog I’ll be going over a popular LeetCode problem in which we have to delete/replace elements in an array. Here’s a picture of the prompt:

The question is asking us to create a function that takes in an array (`nums`

) and an integer (`val`

) and remove all occurrences of `val`

inside of `nums`

. There are multiple ways in which we can solve this problem. I chose to solve this problem by using a `for`

loop and implementing the built-in method `.splice()`

. I believe it’s important to plan out the steps before doing any actual code! …

For this blog I’ll be going over a simple problem in which we have to capitalize the first letter in a string. Here’s a picture of the prompt:

The prompt is asking us to create a function that takes in a string and can capitalize the first letter in the string. There are multiple ways in which we can solve this problem. I chose to solve this problem by creating an array and pushing the characters in a string inside the new array! Here’s the full solution:

For this blog, I’ll be going over how to solve this specific Two Sum problem. Note that I’ll be using JavaScript to solve this problem! Here’s the prompt:

In other words, the prompt is asking us to create a function that takes in an array of integers (`numbers`

) and a `target`

. If the `target`

is 9, then the function should be able to return the indices of the two integers in `numbers`

that add up to the `target`

(9). We also need to understand that there can only be one solution. Also, if we take a look at example 1…

For this blog, I’ll be going over another popular problem on LeetCode. Note that I’ll be using JavaScript to solve this problem! Here’s the prompt:

This problem is asking us to create a function that returns an array where the even numbers are at the beginning of the array and the odd numbers are at the end. For more clarification, example 1 does a great job in explaining the inputs and outputs. Our input array is `[3,1,2,4]`

and we can see that the output displays even numbers at the beginning and odd numbers at the end. …

For this blog, I’ll be going over another popular problem on LeetCode. Note that I’ll be using JavaScript to solve this problem! Here’s the prompt:

In other words, the prompt is asking us to create a function that takes in an array of integers (`nums`

) and returns the sum of the unique elements inside of `nums`

. Unique elements are the elements that only appear once in the array! For example 1, we can see that the output is `4`

because the only Unique values in the array are `1`

and `3`

and adding those two numbers gives you `4`

. Example…

For this blog, I’ll be going over another popular problem on LeetCode. Note that I’ll be using JavaScript to solve this problem! Here’s the prompt:

In other words, the prompt is asking us to create a function that takes in an array of strings and returns an array with subarrays. These subarrays will contain the different types of phrases that can be created with the same letters. The examples are very helpful in demonstrating what the inputs and outputs should be!

Before doing any code, the first step should always be planning ahead or pseudo code. So let’s start with…