11
Soultaker
1 7 15
549/ 645
Maks Verver
Last seen 8 years ago
Member for 11 years, 5 months, 20 days
Difficulty Normal
Best reviews / Newest reviews
One line-PositronicLlama 3
I think solutions like this are much too contrived. Cramming everything into a single line makes the solution unnecessarily hard to read and comprehend. Remember the Zen of Python: - Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex. - Complex More
BFS-bryukh 2 1
Nice and compact formulation of Dijkstra's algorithm. Would be even more efficient if `closed` was an actual set instead of a list (searching for states using `x in closed` looks simple, but takes linear time). More
Second-pjwerneck
The basic idea behind the approach (either move directly from start to finish, or go through exactly one pair of boxes) is fine, but the solution does not scale to a large number of boxes, because then it must re-run the pathfinding algorithm for each pair of boxes on the map (and the pathfinding al More