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'm sorry - I know that's cruel :(
Fixed.
Your second comment just describes real world cheating - I do not know anyone who does that :P
Besides there is possibility that when you are stacking bars in layers like that, you won't be able to break them without puting extra 'inhuman' strenght or breaking/damaging the
1x1
pice into smaller parts.That's exactly it - function gets dimension of chocolate bar
n
xm
and must return number of breaks needed to split it to blocks of1
x1
sizeOk i give up - changed some test cases to use assertEquals instead, so it should be a hint of some kind.
Thank you for giving it a try :)
I have updated description.
Thank you for input.
I have updated description - you should just return 0 in that case :).