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 3.10.7
11.8 // 2 -> 5.0
This comment is hidden because it contains spoiler information about the solution
It always returns int and did pass the test ;-)
Please recheck your code! 520 users have solved it.
Worked properly on py3, there is some floor division changes from py2 but I'm not into details.
This comment is hidden because it contains spoiler information about the solution
That code return float type and will not pass the tests.
This comment is hidden because it contains spoiler information about the solution
It seems javascript tests are not correct. My C++ code has passed all tests, but absolutely the same javascript code failed with better value:
Big number random tests
✔ Test Passed: Value == 2211
✔ Test Passed: Value == 2211
✔ Test Passed: Value == 804
✔ Test Passed: Value == 1809
✔ Test Passed: Value == 603
✔ Test Passed: Value == 603
✔ Test Passed: Value == 603
✔ Test Passed: Value == 3015
✘ Expected: 1005, instead got: 804
✘ Expected: 1005, instead got: 804
You dont need to test if i==True, you should use just 'if i' instead. The object always return True if it's contained the value(not empty) or 1.
Hmmm... Why you think that person with 10 staying it the queue alone? The person with 3 might stay there too.