The cliff at n = 11
Ten cities, and you can check every possible route. Eleven, and you cannot. So what do you ship for the eleventh?
A salesman starts at one city, visits the rest once each, and drives home. The map draws the route each method picks, and the slider adds cities. Every city added multiplies the routes. Watch The gap go blank once checking them all is no longer possible.
Preparing for interviews? The ten-week plan puts this in order with DSA and the design rounds.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Complexity Theory (when problems are hard)
The whole idea this lab came from, told start to finish.
on the path Module 3 of 11 in DSA: Worked, and deeper
The lessons, boards and videos around this lab, in reading order.
see also A Framework for Frontier AI and the Dawning of a New Age in Papers.