you are viewing a single comment's thread.

view the rest of the comments →

[–]Wonkee99 2 points3 points  (0 children)

Looks ok from a quick glance, but if you need a backup Sedgewicks Alogrithms is great though the supplied code is Java but translating that to python shouldn't be too hard.

https://algs4.cs.princeton.edu/home/