When we are supposed to get a TLE after 10^9 iteration?
as bhaiya said that it complexity will reach to 10^9 as complexity is O(q*n) so he make solution of order O(q+n).
When we are supposed to get a TLE after 10^9 iteration?
Hey @kkunalguptaaa
1 second== 10^9 operations
If its mentioned 2 seconds then 2*10^9 operations and so on
So it will always be mention what is the expected time limit.
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.