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.
Hello,
I am using C++ and I have a failure in the random test for:
If the missing element is 999 (so 3 digits), then the sequence starts with 641. The second number is 854.
Since:
I think the correct result should indeed be -1! Or I am not understanding the kata correctly?
Howdy, I need some help from you guys :)
So, I am using C++ and I was able to have a solution that passes all the tests (including the timeout ones), but it fails afterwards on random tests.
Here are 2 examples: 141163297, 415765168. In both cases, my answer is 4 while the random tests expect 3.
I believe it's some problem in my implementation related to some overflow cases, but it's being hard for me to pinpoint the exact reason...
In order to debug better, I was wondering is someone has a working solution at hand and they could provide me for the 2 numbers:
141163297
415765168
the 3 squared numbers whose sum adds to them.
Thanks a lot!