3 ms·
OK, you are simply proposing the most obvious solution to the problem, which is entirely correct - I must have misunderstood your reasoning. I assumed Reddit w
by e-dard 16y ago
OK, you are simply proposing the most obvious solution to the problem, which is entirely correct - I must have misunderstood your reasoning.
I assumed Reddit would want something a bit more special that the hundreds of Binary Search implementations they are going to receive. There are always faster algorithms that can be designed for specific problems, even if realistically they only save (in this case) 100ms.
It's a competition - you're supposed to stand out.