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.
In my opinion, using 'x' instead of 'i' in the for loop would improve readability and understanding for someone only taking a quick glance at this code.
The description doesn't mention what to do when the volume is already divisible by 3
The description doesn't mention what to do when the volume is already divisible by 3
done
done
Random tests added.
Fixed.
approved.
Ah, yes! I missed "lower than". Sorry!
The other kata had a problem there, but this one states in the description
which lead me to believe
0
was acceptable.This comment is hidden because it contains spoiler information about the solution
You're right - the simplest solution is not the best solution.
Better to fix the testing.
I'd rather suggest to keep the description as is, this time, and make a slight update in the kata iteslf. It'd be a bit more interesting, I'd say. ;) (not that it's not currently, but the slight shift in the logic is interesting, imo)
Would a zero increase still be an increase? Is
0
a perfectly good number, or not? Not going there .. :PA slight description update would be the simplest solution, I'd think. Do you have a suggestion for that?
There is also this test:
input=0 -> Test Passed: Value == 0
That contradicts this:
Loading more items...