Playing up question

Sir how do i calculate the time limit of my code using its complexity so that it does not exceed the time limit given in the question

Hi

are you able to calculate complexity of your code?

if yes then

check the range of variables involved in complexity.

In 1 sec you can perform max 10^8 iterations only.
Use this information to get an idea if your code will exceed time limit or not.

Hit Like if you get it!
Cheers!

Hi
As you are not replying to this thread i’m marking this as resolved you can reopen it later if you still have doubt.

Cheers!