What data structures does the code use to explore the states?
The code uses a queue to store the states to explore and a set to avoid revisiting v...
What data structures does the code use to explore the states?
The code uses a queue to store the states to explore and a set to avoid revisiting visited states. The code uses a stack to store the states to explore and a set to avoid revisiting visited states. The code uses a priority queue to store the states to explore and a set to avoid revisiting visited states.
Compartilhar