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.
Ruby translation
wow, I never thought of using spaceship operator. Nicely done
Yep, it doesn't matter what is in between the first and last index. Lol, I really overcomplicated my solution.
What's this, I wonder???
Approved, thank you
Ruby translation
adding int to a string directly for a pythonic guy was quite interesting
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Took a bit of time to understand. Feels a bit magical that you can do it like this!
this make 100 not a valid number, right?
ruby returns last evaulated expression.
you will use return if you want to get out early
from a method.
I am starting to understand why this works. But starting from Euler's, how did you get here? And why is it that we don't have to check if i is prime?
Clever, but I would definitely not call this a best practice.
This is clever but I wouldn't say it's the best practice.
That is because it's relatively harder to understand at first glance (when compared to some other solutions).
That was the case for me to say the least.
Loading more items...