Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Is modifying the input really best practice?
Very readable and logical. Oh, this language design...
How could this be "best practices"? 0_o
Time complexity is O(n^2), would not consider it as 'best practices' while there are more optimal solutions (e.g. see Counter).
Now you can use:
from math import gcd
but I guess this solution was created before Python 3.5.Simply beautiful.
This comment is hidden because it contains spoiler information about the solution
Yea, that's how I sometimes feel solving problems with python :-)
Performance-wise this solution is not really good...
100% agree.
Simply amazing
+1
It's just a high school math problem...
Thanks, the description is a nightmare.
Thanks for that comment, the description is terrible.
Loading more items...