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 comment is hidden because it contains spoiler information about the solution
i agree, reading correct helps a lot here.
even with the 1200ms timeout problem
I just added "#include cmath".
195 guys passed the kata out of 1415. I'm very sorry for you.
The description of this kata tries to speak for all its language versions (currently C++, C#, and JavaScript). Please read "array" as "indexable data structure", i.e.
std::vector
in C++, array in C#,Array
in JavaScript.Regarding your second point: We are really working with sorted arrays (
std::vector
s in C++). Look at the test cases.This comment is hidden because it contains spoiler information about the solution
10200 has 7 divisors.
48 guys passed the Java kata (out of 289 as you could see at the top of the page; the fixed tests are the same in all languages) so I am quite sure there are no errors in the tests.
array1->[2 2 9]
array2->[4 9 9]