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.
Fixed now.
Both are done. I made these changes since the original java translator was not available for correcting them.
For python, I have now included tests where output will be -1. -1 was covered in basic tests though.
"You could also specify that you must purchase exactly one meal per person;" -- Done.
I may create other katas on the lines of maximising profit for the organiser, as you suggested. I have thought along that line when I wrote this kata, but will need to find some free time to create variants.
Thanks for the suggestion.
Done.
That's against social decorum :) I will include the clause if at least 10% warriors want it after the kata has been solved 100 times.
Sorry for the that. Will republish.
Adding more random test cases (1000 is given in the original Python Kata, apart from the 100 for smaller numbers) for bigger random numbers is necessary.
There should be a good number of random test cases.
This kata takes only integer for zero, so i != 0 check is necessary and sufficient. If test cases have 0.0 i.e. a float, you'll need (i != 0 or i != 0.0).
Yes, it is of course possible.
Test cases must contain a large number of (say in multiples of 100) random test cases.
Test cases must contain a large number (in multiples of 100) of random tests.
[Python Translation] (https://www.codewars.com/kumite/5aa6ca874a6b3453dc0000f3) translation added :)
Loading more items...