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.
Should be fixed now
Just some hundred milliseconds or so.
This comment is hidden because it contains spoiler information about the solution
It is possible to pass with linear time complexity solutions in the C and C++ versions, but in the python and javascript version such solutions time out.
Hi @MichosDV - it seems that you have passed the kata, so just adding this comment so that other users don't think there is anything weird/problems with the kata.
FYI, your problem is/was probably due to the behaviour of
//
, for example:you can see above that multiplying by 6 then
//
6 just has the effect of rounding your answer; the specific value of6
is irrelevant - you could just as well use591227
as I did above.The "exact solution" - being made up of a sum of integers - shouldn't need to be rounded though at any point, so I'm not sure where your tiny mistake crept in.
The exact solution does not pass. Multiplied by 6, then //6, and all the tests passed.