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.
Interesting, this was my first solution, but it failed at 41.
According to the test it should return false not true.
I think this is the best and simplest way.
leading zeros are irrelevant because the function is expected to return a
Number
, not aString
If U use num = 007, the return expected 0049, but, ths code will return 49.
This comment is hidden because it contains spoiler information about the solution
very concise 😀👍. It never crossed my mind.
Even though I also consider this as clever, wouldn't this be best practice (or maybe better practice)?
:(
Why my solution is always bs
This comment is hidden because it contains spoiler information about the solution
I was feeling clever for using the sum of numbers formula and eliminating the need for an iterative method, but damn that's slick.
My solution is easier to understand. This was a lot like Fizzbuzz.
This comment is hidden because it contains spoiler information about the solution
tbh i dont know abt this
Totally forgot about this, never occured to me that i could use this.
Loading more items...