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.
What is being repeated that shouldn't be in this solution?
have you used
timeit
to compare the performance of yourCounter()
solution with this one? I personally believe that your solution could be 10X slower.Repeating code doesnt automatically ruin a solution. In this case it is actually very readable and writing this in another way would make it unclear for no reason
But useless
=~)
https://www.codewars.com/kata/reviews/581f12505b2f0b5b05000079/groups/5eb0b5d00af08a00019fe6af
I'm not entirely sure, but a hint might be that the numbers always increment by 3.
Not dirty, but yes working in Python 2 only
just 2)
thank you i have checked and refactored my solution