4 ms·
Friqing Out with Python Closures
- bayareaguy 18y agoFun for sure but for priority queues it would be more practical to just use Python's built-in heapq module: http://www.python.org/doc/2.5.2/lib/module-heapq.html http://www.python.org/doc/2.5.2/lib/module-heapq.html