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.
thx a lot, now it's much clear
This comment is hidden because it contains spoiler information about the solution
runnig my code in IDE with howmuch(9990, 10000) gives [[M: 9991 B: 1427 C: 1110]] but submitting the same code in CW gives:
BasicTests(CarboatTest)
****** Basic tests ******
expected:<[[[M: 9991 B: 1427 C: 1110]]]> but was:<[[]]>
=(
task for kata is cool but output format should be reconsidered since there are strange issues with those braces...
thanks, I'll check it..but then probably Instructions should be updated so they are consistent with Unit test to minimize confusion?
Java test says: expected:<[[M: 37[ B: 5 C: 4][M: 100 B: 14] C: 11]]>
guys, what?? what is that format with square brace after "37"?
besides Kata Instructions state:
howmuch(1, 100) => [["M: 37", "B: 5", "C: 4"], ["M: 100", "B: 14", "C: 11"]]
Format of output is completely different - double quotes, less braces. Probably Java tests should be fixed =(
that was an infinite loop due to wrong condition ;(
.length points to just a field of array object. No calculations are even beeing performed at this point.
The much worse is concatenating strings in a cycle. That's a very bad practice
Process was terminated. It took longer than 10000ms to complete
well ((((( what's workaround here?