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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you!
I like your regex solution! I learned a lot from it.
notes/reminders for my benefit:
I like how simple this is.
As a beginner i'm still writing out the long version and explicitly declaring statements, so this is very useful to see the shorthand versions of the same thing.
note for my benefit:
learnings from yours:
Yes, the input number will only be natural numbers. However, for the result, it will be float number. The one in the
expected ... to equal ...
is the result from running your solution function (left) and the expected answer (right).This comment is hidden because it contains spoiler information about the solution