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.
I way overcomplicated this
Very simple and clean. Easily the best practice and I learned a lot from this.
Smort
Dude ... I just finished this, found the same solution ... EXCEPT, I included a "if not isdigit()" check into the return statement, because my dumb-ass though that the "moOse" example in the description had a zero instead of a capital 'o'... so I thought that we had to make sure that if a number is included, function returns False. Once I finished and saw your solution, I was looking at it for like solid 3 minutes, asking myself why is this here if it obviously doesn't fufill one of the requirements, before finally realizing that I confuzed 0 and O .... **** me.
no solution can be cleaner than mine
Thanks ❤️
this is my first solution. but i feel it is O(5n) and with simple for .. you can do it just O(n)
when your code finally hits a clever solution!!!
its called aliasing..
number_to_string = str
its like instructing python that str has another name as well, namely 'number_to_string'.
I'm glad I was able to see this and learn something new
Amazing solution, I didn't even think about this
Congrats dude! I have a similar solution.
I feel that too.
After solving a problem, I now think to myself, how can I rewrite this as a one liner? It's not always efficient but it's clever.
This comment is hidden because it contains spoiler information about the solution
best practices
Loading more items...