Very nice. I have added a comment at the bottom, using a circular queue instead of a deque may be faster.
Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list
Very nice. I have added a comment at the bottom, using a circular queue instead of a deque may be faster.
Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list