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.
can you explain your solution?ty
In terms of time complexity, using count() is not very efficient because for each character in the string, you are iterating through the entire string again to count its occurrences.
Good job! :)
yea I thought how could I count them(not knowing there is also count function lol
I was trying a similar approach but I wasn't sure how to say if there were a repeated character.
The if stament is pretty clever.
clean, but, in my opinion too hard
Clean and readable.
This comment is hidden because it contains spoiler information about the solution
LOL, I do the same
Same.
I have to remember these functions so I can have cleaner code
like Orange once said: sounds great doesn't work
Since string is a standard module, it should not be used as a variable name, no?
This comment is hidden because it contains spoiler information about the solution
why can't i use the lower() in the for statement?
I mean: string = string.lower() -> for letter in string.lower()
I have tried but doesn't work and i don't know why.
Thanks
Loading more items...