33
PositronicLlama
8 21 36
4710/ 6695
Positronic Llama
Last seen 9 years ago
Member for 11 years, 5 months, 4 days
Difficulty Normal
Best reviews / Newest reviews
First-bryukh 3 2
I like the use of the 'min' function, but you could consider using the 'key' argument, which would eliminate the extra [1] at the end of this expression. This also lets you use 'max' instead of 'min'. The final version would look like this, which is cleaner and about the same speed as your versi More
shortest?-veky 3 1
Short and clever solution! But brevity is not the only goal - I would suggest trying to write the shortest solution that also follows the PEP8 style guidelines. More
First-caierde 1
> #Your code here > #You can import some modules or create additional functions You should delete these comments, and instead start the module with a doc string explaining what the module does. > > > def checkio(data): >     #Your code here >     #It's main function. Don More
A* Search-bryukh 1 1
Nicely documented! I would recommend using PEP8 naming conventions (lower case variables and function names). More
For PositronicLlama-veky 1
I was curious how our three solutions compared, so I wrote a quick runner using timeit: positronic_llama: 0.77s veky: 0.20s veky2: 1.08s veky beats positronic_llama by 3.93x positronic_llama beats veky2 by 1.40x veky beats veky2 by 5.50x More