I think my code’s complexity is O(n^2) and n <= 200000. and no of test cases possible is 20 and we know that 10^16 operations can be performed in 2 sec. Then it should pass all test cases bt getting TLE in three test cases. Where am i going wrong? Please correct me.
My SOlution-https://ide.codingblocks.com/s/71587
Cover them All Problem
Hi
No, you cannot perform 10^16 operation in 2 sec,
you can only perform 10^8 operation in 1 sec, so in 2 sec max 2*10^8 operations in 2 sec.
1 Like
what a blunder mistake i was doing. Thanks a lot.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
1 Like