This is the problem. I am using sparse table and implementing it exactly as given in the editorial but I am getting, TLE on test 3. I have been stuck for 2 days now on this:-(
Can anyone point out the mistake? Thanks.
This is my submission : 124743771