Hello People,↵
I am stuck in a question for a while. I was attempting the **Cut and Paste** [Link](https://cses.fi/problemset/task/2072/)↵
and **Substring Reversal** [Link](https://cses.fi/problemset/task/2073/) 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](https://www.codechef.com/problems/MCO16506)** This question has more added queries. I am looking upto this code but still it gives TLE.↵
Any Help will be appreciated on this.
I am stuck in a question for a while. I was attempting the **Cut and Paste** [Link](https://cses.fi/problemset/task/2072/)↵
and **Substring Reversal** [Link](https://cses.fi/problemset/task/2073/) 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](https://www.codechef.com/problems/MCO16506)** This question has more added queries. I am looking upto this code but still it gives TLE.↵
Any Help will be appreciated on this.