You are viewing a single comment's thread. Return to all comments →
For c++ user...
Use c++14 with same code!
Thank you so much for your helpful comment, which really saved me!
My code in C++ getting timeout for test cases 9 and 10 was accepted in C++14 without any modifications. Even if a set of operations runs in constant time for each query, the code received timeout with C++.