57
veky
22 48 64 Leader of the month
44583/ 53887
Last seen 12 hours ago
Member for 11 years, 6 months, 6 days
Difficulty Advanced
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time.

Best reviews / Newest reviews
First-fishiwhj 1 1
Aargh. Don't write C# in Python. And _please_ don't use pseudoHungarian notation. It completely misses the point of Python. Also, learn Python idioms. Many of your lines can be written in a clearer, sometimes even point-free way. In some cases you don't even need to learn new idioms, just use them More
Simplified stack solution-bsquare 1 1
Now, isn't that much better? B-) More
Folding-ale1ster 1
This solution reminds me of that silly task "Count the number of F's". :-D More
difference-McMan 1 1
You don't need list(). And you don't need len() either. ;-) More
recursive sum-McMan 1
Why didn't you just put s=0 in line 1, then you don't need line 2 at all? Also, len() is unnecessary. Sequences are boolable. More
recurrence-bunnychai 1
Argh, float("%.2f" % x)... you really should use the function "round". ;-) More
First-tuxninja 1
I know you're proud of this solution (I read your blog;), but your operators are a bit convoluted, your if is unneeded, and your iteration is half-baked (literally;). How about this: def checkio(number): numerals = { ... } roman = '' for value, phrase in sorted(numerals. More
date'n'time-pohmelie 1 1
You get a thumb for most pointless encoding here. :-D More
quine = lambda: code-flpo 1 1
This is cheating, of course. But it's cute. :-) More
Shuffle the points!-hrvoje 1
Not bad. Handling singular cases is cool. :-) You might want to use some of Python's batteries, though. For example, for a, b, c in itertools.permutations(eval(data)): with contextlib.suppress(ZeroDivisionError): ... lines 7 ~ 12 ... lines 17 & 18 seems much ni More
The Better Solution-obone 1
"Improvement" depends on the criteria. I surely think that just trying the bases until one works is more intuitive than calculating the maximal digit value --- but of course, the second one is faster. More
No for loop-tralfamafnord 1 1
... but def loop. :-) Nice. Though you didn't really need another function... checkio could be called recursively. :^) More
Second-cbrunet 1 1
You don't need first condition in line 6. ;-) (Also in line 9 if you write it with slices.) More
First-htamas 1 1
I always say this, so I'll say it here too, although I'm sure you know it. :-) sum(1 for blah if cond) is just sum(cond for blah) Iverson FTW. ;-) Also, you don't need parentheses in line 11. BTW, I'd swear there was a more obvious way to add something to a Counter than wha More
First-ciel 1 1
It's fascinating that the same solution, somebody puts under puzzle, somebody under clear. :-P More
First-enkeyz 1
Why "else: pass"? Those are completely superfluous. More
via str()-juestr 1
Three functions just because of a single `i`. :-) More
Strip Teasing-caldeius 1
That's how I planned to call my solution, bit there might be children around. 😛 More
First-enkeyz 1
Nice usage of conditional expression. However, it would be much nicer if you explicitly checked n in range(len(array)), or at least 0<=n< len(array). I know of preconditions, but it's not much harder to write those additional conditions explicitly. More
First-xiaozhan 1 1
:-) If you're going to use `len() and`, you can use it in at least two other missions. Try to find them. ;-] More