课程: Code Clinic: JavaScript

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

Solution overview

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…

内容