3 ms·
Interesting! I didn't know the solution with two pointers and would have assumed O(n) memory as a lower boundary. I must admit I didn't follow the bytecode too
by lolc 7y ago
Interesting! I didn't know the solution with two pointers and would have assumed O(n) memory as a lower boundary.
I must admit I didn't follow the bytecode too closely. So thanks for pointing that out.