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.
Sorry about that, It's my first translation, I added some basic example test cases just now.
Please add some basic example test cases.
I guess the "Honor Percentile" means the percent of people you have beaten.
Yes,you're right! Thank you !
The solution is very short and I REALLY like the gcd algorithim.
However, I'd be concerned a little bit about arithmetic overflow with "D"
Right: thanks for your feed, JoJo!
strikes a Kars pose
There is a mistake in second example :Kata.MinUnfairness([30,100,1000,150,60,250,10,120,20],5)==20 //The result should be 90.
Fine now,thank you!
Added that one to Example Test Cases.
You can actually use Console.WriteLine() to see print anything you want to console. This helps in debugging a lot.
The negative zero problem seems to be gone. But now I got a new error:
✔ 8 assertions passed
✘ Expected string length 14 but was 13. Strings differ at index 0.
Expected: "-195595/564071"
But was: "195595/564071"
-----------^
This input is not included in tests, therefore I can't reproduce it to see what the new problem is. Can you please add it?
Sorry, my friend!
I think now it is fixed.
I took your additional testcase also in the "real test cases".
Could you please try again?
Yup, I know, I corrected my solution (local copy & stuff). The error message was just super confusing. :)
Try again, LesnyRumcajs ;)
Your solution is a bit of bad practice which is why it failed initially; with my edits you were able to pass, but now I added some protection against that.
This comment is hidden because it contains spoiler information about the solution
Loading more items...