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.
already stated in description, so it's clear enough
Assumptions:
0^0 = 1
0^1 = 0
here is the data in the
C#
test suite:This will definitely expect false and not true. So I don't know what you did, but you did it wrong for sure. And note that when I return false directly in
C#
, that test is passing perfectly fine.Why would 0^1 be equal to 1?
Not an issue
Maximum return value range is
24*3600*1000
which is well insideint
range.I made it clearer now I believe. I also included an image.
If this is no longer an issue could you mark as solved please? Thank you.
The instruction is, "farthest fromt the middle" which is pretty clear. And your code of [1][4] would be incorrect if there each team would have more or less positions
I agree with curious. I don't see the need to prevent loops.
What? Why should it prevent infinite loops? I don't see a need for it :/
Changed code to two arguments
This comment is hidden because it contains spoiler information about the solution
I suspect the numbers weren't 873, 158, and 189, but 8073, 1058, and 1409. Maybe your program doesn't handle 0 properly?
I m gonna Add a test case fOr it.