For the test case:
The runtime is 35 ms even I return [5, 6] directly without any loops.
I don't think it will have a faster way other than return answer directly.
Just cannot believe...
@SmallerWhale why ? How would it be possible to run some python code client-side in a browser ?
And how would they handle C++ and other compiled langages ?
It's simple, I think they lie and that the code is executed server-side.