Question 25/500 - Problem Solving in JavaScript

Question 25: Create a function that takes a string or array as a parameter and returns an array of characters removing close repetitions.


Here we are using filter, checking if the previous letter is different from the current one.


Why should I follow this series and how will I benefit from it?

We are on a mission to solve 500 problems using JavaScript. We would start from very easy questions and gradually shift towards medium, hard and also very hard questions. 

By following this series you will also be able to learn DSA using JavaScript. Moreover, we will also solve questions from leetcode and other problem solving websites.

Please  follow and share this series on your story so that it can be beneficial for others as well.

Follow @devtipsdaily for more!

Post a Comment

Previous Post Next Post