TLE Error For The following code


This is the code that I had written This is an O(n+m) solution ie linear time I think. Kindly tell me what’s the issue with this

Basically u are not getting tle… its run time error…
refer to my code https://ide.codingblocks.com/s/597576

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.