Hello Codeforces!!↵
↵
I was attempting [problem:1288E] and I am getting TLE on test case 9.↵
↵
I tried the first and the straight forward approach given in the tutorial i.e. to use merge segment trees for finding the number of distinct elements in a subarray. ↵
↵
I would be grateful if someone could take out 5 mins to look at this code [submission:84970607].↵
↵
TIA!!
↵
I was attempting [problem:1288E] and I am getting TLE on test case 9.↵
↵
I tried the first and the straight forward approach given in the tutorial i.e. to use merge segment trees for finding the number of distinct elements in a subarray. ↵
↵
I would be grateful if someone could take out 5 mins to look at this code [submission:84970607].↵
↵
TIA!!