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 - JavaScript Tutorial
From the course: Code Clinic: JavaScript
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Intro: Eight queens1m 45s
-
(Locked)
Solution overview1m 31s
-
(Locked)
Preparing the board6m 46s
-
(Locked)
Setting up the board4m 17s
-
(Locked)
Computing solutions3m 56s
-
(Locked)
Finishing calculations7m 23s
-
(Locked)
Storing board solutions4m 1s
-
(Locked)
Display solutions4m 7s
-
(Locked)
Navigating through solutions3m 32s
-
(Locked)
-
-
-