22
Hrvoje
http://blog.hrvoje.org/
Last seen 2 years ago
Member for 10 years, 1 month
Difficulty Normal
Trying to make everything a one-liner and sometimes failing miserably. :)
I'll try.
First, he creates an iterator by mapping int to a string. (list added just for show):
In [19]: list(map(int, "093193293094272"))
Out[19]: [0, 9, 3, 1, 9, 3, 2, 9, 3, 0, 9, 4, 2, 7, 2]
Then, he cleverly extends the game board list (which already contains the rows) by adding colum
More
Learned about takewhile from your solution, very creative use - thank you :)
More
I tend to overcomplicate just about everything, so I was honoring tradition. :)
More
Very cool use of string.join('()'). It does remind of a female body part, though. Naughty Veky. :)))
More
I learned about the algorithm here... check it out, it's easier to understand than the strict and formal math textbooks: https://www.youtube.com/watch?v=QYrpHE8iDGg
More
I love the max(cells, key=your function... approach. My respect, one of the best coders I've seen on the site.
More
This is *freakishly* awesome and clever, I struggled with operators and generators, you just used sets ... boy, do I have a lot to learn. :-P
More