Getting TLE on test case 8 for this problem. I read the editorial which had O(n) complexity. My soln has a complexity of O(n *log n) but as n has an upper bound of 2e5 it should pass right (if it is correct)?
Hey! as I am relatively new to codeforces I don't know if there's any way to get notifications for group contests. I did a quick search but found nothing useful. If there isn't any such feature as of now then I request codeforces team to add it soon. Do comment if you would like the same or if the feature already exists. Happy Coding!