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.
Oh ok, my mind was stuck on a way to use 1 and 2 to make 0.
But i get it now, thanks !
If you have to return nothing, there is one way to do that, right?
In the other case, you can't return 11, that's why you need to return 0.
I don't understand why countChange(0, [1, 2]) should be "1".
Like countChange(11, [5, 7]), if there is no way to use any coin, it's just 0 ?!
What is the change you use to make "1" out of countChange(0, [1, 2]) ? 1 ? 2 ?
This comment is hidden because it contains spoiler information about the solution
It's in the kata description.
"You can assume that you are only given numbers."
IMHO : Could be even better with proper names for the variables.
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
Regex is cool but kind of obscure, i wouldn't consider this "Best Practices".
Especially in a team...
This comment is hidden because it contains spoiler information about the solution
You're right !
It goes from 0.050ms to 0.045ms so not that much, but it's a great idea.
And why is that (really interested in the answer) ?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...