Python algorithms (23/42)

Python algorithms