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.
Thanks for pointing that out, I have a lot to learn.
Correct operation of the function in this solution is not guaranteed.
Input: 1125899940397056 | Expected: 1125899906842624 | Output: 1125899973951489
Input: 4900000070000000 | Expected: 4900000000000000 | Output: 4900000140000001
Input: 9007199041343960 | Expected: 9007198946437696 | Output: 9007199136250225
The total number of such cases (for safe integers) is over 72 million.
work smart not hard
this is not fair at all
I see, people rate this kata badly and comments show that there's room for improvement, but they're all wrong. Classic. /s
The description is simple, write a function which returns a boolean based on three arguments. The task is kind of a puzzle more than anything.
This shouldn't be marked as a spoiler. That's the actual description of the kata.
I don't care whether is "too clever" or not. It never crossed my mind that the problem can be solved in this way - thanks for this solution! You've extended my horizon.
@Chrono79 Oh snap, I didn't think of the test re-using the same copy. Thanks for the quick reply!
@Chrono79 .. Many many Thanks Diego .. Appreciate your efforts Bro .. hope you the best .. Regards .. Zizou
Were you by any chance mutating the input array? I've made a fix so your function works with a copy now, try again.
@b2m9 .. Well ..
This comment is hidden because it contains spoiler information about the solution
May I suggest to drastically improve the description of the kata? I don't know if this all makes sense in the creator's head, but this kata fails at explaining the problem. I showed it to a bunch of colleagues and they didn't understand what was asked for. The very low satisfaction rating indicates that there's room for improvement (as do the comments).
Please, can the creator write a clear and precise description? Thank you.
I can confirm this, I have the same problem as @ormsson since about 24 hours. It doesn't really matter, but it's odd.