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.
Exactly the solution I came up with :)
ππ
This is not efficient
Using .count() inside a loop is quite costly. An alternative is to use 'Counter' from the 'collections' library:
from collections import Counter
I still am struggling to understand thisπ€. Can someone explain it in a dummy way, please?
Oh wow
Using recursion and join in a place I did not expect
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
yeah, but with the spoiler flag, thx (comments are visible from the dashboard)
This comment is hidden because it contains spoiler information about the solution
while one liners are smart and sometimes useful, this code is much nicer
They found the nth term (used in maths) and they used that.
I thought mine was the most optimal. Lol
@rowcased i can only say thanks..... I was searching for an explanation to the kata and the example is.... an explanation by self
Loading more items...