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.
There is no problem with the tests, the error message is only showing the first failed test, look at the sample tests, the first one expects 3, the second 1, that's why you get that.
My solution was, instead of trying to reverse calculate from m, I just iterated the volumes of m for n=1 up until the test volume was equal or exceeding m. Loop until the test volume is not less, then outside the loop test if the volume encountered was equal vs greater. If equal, return n, else return -1. It works for all but 2 cases, which makes no sense to me, because if I manually reconstruct test1 and testA, my manual calculation comes out with a different answer than the assertion.
@Mo_Tab , Thanks for your Kind Words
This comment is hidden because it contains spoiler information about the solution
specify your language, post your code with a spoiler tag, and use proper markdown formatting, otherwise probably no-one will have any idea how to help you
for(double i=0; i<n; i++) {
False is ok for those strings.
Your code is wrong, check the instructions again, why are you adding up the values? Not a kata issue.
This comment is hidden because it contains spoiler information about the solution