Test case not getting clear
@Bhavya_Goel n is upto 1e6 and your code complexity o(n*n) so it will give tle refer this video by prateek bhaiya to do this
dont forget to hit like and mark resolved if cleared
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.