In article <52f80bca$0$29972$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote:
> On Sun, 09 Feb 2014 10:05:02 -0500, Roy Smith wrote: > > > Is this a homework problem? > > and then (paraphrasing): > > > working code that solves the problem > > /headdesk I gave him the benefit of the doubt. Also, as I look at my solution, I realize it doesn't really meet the O(1) space requirement. Understanding why is left as an exercise for the reader :-) -- https://mail.python.org/mailman/listinfo/python-list