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.
This is kata creator fault .
Right now there is no clarification in description or test case for one particullar scenario - values with different types but with human equal values .
Solution of OP will fail such test case :
Assert.AreEqual(false, Kata.Check(new object[] { "66", 101 }, 66));
In real game/program such oversight could lead to nesty bug .
Given the constraints of the items being either a number or a string, there's no reason that this should fail the tests.
why?
i also did that way but it passed
could u say what is problem there?
Exactly my thoughts right now :D
maybe because casting to integer floor the number rather than ceil?