← Questions
Drive to an unseen destination without going in circles
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A car must reach a destination on a map it cannot see in advance. Each time it arrives at a place, it learns which directions it can continue in from there. Write the search that drives the car until it reaches the destination and never loops forever. Explain how you remember visited places, how the car backtracks physically, and what it costs.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
