From the course: Code Clinic: JavaScript

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution overview

Solution overview - JavaScript Tutorial

From the course: Code Clinic: JavaScript

Start my 1-month free trial

Solution overview

(chiming music) - So this problem is pretty common and as the text here says, it's pretty famous. You may get asked this kind of problem in an interview. However, I feel like the algorithm have been done over and over and we're going to go through all the code. This is probably the most code heavy code clinic that we'll encounter, so it's gonna get pretty dense. However, what I've also focused in is giving you an interface that you can use to actually visualize the solutions to these problems and even if you want to play around with how the solutions work by visualizing the code as you start creating it. So to me, building interfaces is the more useful part of something like JavaScript. The algorithms itself is something that you can study and learn something from. In this case, we're going to learn how to use backtracing which means once you sort of finish a problem, you can backtrack and look for additional solutions as well as recursion which means building a loop where the…

Contents