problem the next-th

Jan 11, 2009 08:03

problem 102 )

Leave a comment

Comments 1

pmb January 11 2009, 17:31:42 UTC
The more of these you put up the more egregiously terse my code becomes.

http://pastie.org/358051

The only pythonicness hint I have is that your permute code looks like it wishes it were a generator and was written using yield instead of return. Also, tuples get sorted by first element first, and then by the second element if the first element is equal, enabling you to get away with using the builtin min() function.

Reply


Leave a comment

Up