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.
Can anybody give me a key how to solve this kata? I tried to use binary representation of these numbers, but i still can't find the solve :(
I can't pass any RandomTestGetY test, while RandomTestCalcIntegral fully passed.
What am I doing wrong?
Obviously there should be the constant in the integral formula like this: 0.5Mx^2 + B*x + CONST, but the description doesn't tell anything about it.
Yeah, thanks!
Compare10
✘ '##' vs '1176'
Expected: True
But was: False
WTF? How can be 35+35=49+49+55+54?
And some more issues
Compare5
✘ 'zz1' vs ''
Expected: True
But was: False
Compare9
✘ '!!' vs '7476'
Expected: True
But was: False
Yes, I already understood it.
It's just my inattention.
Thanks!
Can anybody tell me, how to trow an exception properly (C#)?
I paste this code
if (lives < 0)
{
throw new Exception();
}
But I can't pass the tests with this.
The result of the test is "System.Exception : Exception of type 'System.Exception' was thrown."
Hope you help me!)