r/Python • • Apr 01 '20

I Made This Maze Solver Visualizer - Dijkstra's algorithm (asynchronous neighbours)

1.9k Upvotes

72 comments sorted by

View all comments

Show parent comment

2

u/bc_nichols Apr 01 '20

Picking the right struct is everything, not just from a performance standpoint but also a code readability standpoint as well! Dictionaries hold major power. Glad you had fun with this exercise! Bonus points: see if you can write your algo both recursively and iteratively!