Hello People, I am stuck in a question for a while. I was attempting the Cut and Paste Link and Substring Reversal Link of the Advance Techniques of CSES. I am using implicit treaps but it is giving me TLE for the last test case. I've found similar question on CodeChef Link This question has more added queries. I am looking upto this code but still it gives TLE. Any Help will be appreciated on this.