27
Marco Punteri
Last seen 1 day ago
Member for 3 years, 1 month, 11 days
Difficulty Advanced
i always love to see my solution in just one line, i'm too verbous :)
More
IMO re is not so readable, but very powerful, and so i don't like so much the "half use" you do
More
always happy when i see any and all used ;)
More
I think this solution is really elegant, even if it's quite puzzling if you don't know how groupby works, expecially for the identity as default keyfunc value!
More
i like the math approach but your seems to be unnecessarily complicated, you coud achieve the same result using the // operator
More
This is because lists are mutable and passed by reference, right?
I like it, despite the classification (imho it's a creative solution, not clear)
More
ok, yield from is like necromancy for me xD
Out of joke, if i read such a code it's quite obvious to me, but i'm not able to write it from scratch
More
wow, this is really creative! Never thought that str(array) could work in that way :)
More
in the fight method of battle class is it necessary to duplicate the couple of return? Aren't enough the second ones?
More
hi, you can write in a more compact way adding the underscore first (if len is odd). Then the loop is one
More
Hi, i like the chioce of the mathematical path. Nevertheless you have a shorter way using log
More