Python algorithms (30/42)

Python algorithms