Mine is O(logN), in Python. It's a binary search.
it say that my code fail with vectors with length 3 , or i tested it with my IDE and it worked just fine with all type of vectors
the test in C++ is broke
I had the same problem, all test were passing except this one. But is not an issue of the kata, is just that you did not find a correct solution yet 🤷♂️
i couldn't solve kata on python, time out, and i refactoring my code as my best, can simeone give me advice?
This comment is hidden because it contains spoiler information about the solution
the problem is not solved
If the kata contains errors, then you can not recommend it for passing!
I was interested but cannot find anything regarding the syntax fixtures.random(..).
The problem is finding the best speed so you have to optimize your code to the max. And of course, there'a bug in the problem...
Perhaps whoever designed the tests did not know very well the realm of integers (Z). By the way, did you know that -1,000,000 is less than -1
may you send your code