Solution: Recursive Recursive Backtracker
Understand the solution to the “Recursive Recursive Backtracker” challenge.
We'll cover the following...
We'll cover the following...
Solution
Let's execute the following code solution and see how it works:
Press + to interact
C++
Files
class RecursiveRecursiveBacktracker# Write your code heredef self.on(grid, start_at: grid.random_cell)start_at.neighbors.shuffle.each do |neighbor|if neighbor.links.empty?start_at.link(neighbor)on(grid, start_at: neighbor)endendgridendend