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 think maybe this kata should be 4 kyu rather than 5 kyu.
I've solved it but not in a very sophisticated way, and I think the best practice solutions are worthy of a much higher ranking.
Thank you. Yes, very silly of me.
It should be yes. The test is correct.
The test is ok, your code is wrong. Read the posts below. Think how you give back the change.
[25, 25, 25, 25, 50, 100, 50] 'NO' should equal 'YES'. It's test wrong.
The test is correct and your code is wrong:
Yes you have, the test is ok.
I think there's a problem with the test.
The test said it expected 'YES' from [25,25,50,100,25,25,50,100,25,25,25,100], but that's incorrect. By the time you get to the first 100, you don't have 75 to give change.
This comment is hidden because it contains spoiler information about the solution
Great solution! I'm still new to JavaScript and have been finding it hard to grasp when switch statements are better to use than if/else statements, but this has made it a lot clearer. Thanks a lot!
Great solution! I'm still new to JavaScript and have been finding it hard to grasp when switch statements are better to use than if/else statements, but this has made it a lot clearer. Thanks a lot!
Great solution! I'm still new to JavaScript and have been finding it hard to grasp when switch statements are better to use than if/else statements, but this has made it a lot clearer. Thanks a lot!
Great solution! I'm still new to JavaScript and have been finding it hard to grasp when switch statements are better to use than if/else statements, but this has made it a lot clearer. Thanks a lot!
Great solution! I'm still new to JavaScript and have been finding it hard to grasp when switch statements are better to use than if/else statements, but this has made it a lot clearer. Thanks a lot!
Great solution! I'm still new to JavaScript and have been finding it hard to grasp when switch statements are better to use than if/else statements, but this has made it a lot clearer. Thanks a lot!
Loading more items...