Finding Time-Complexity

How to determine the solution of a problem by looking at its constraints?
And how should I know which complexity algorithm should I use?

1 Like

Have a look on this.

But problem is its in Hindi. But I think thats exactly what you are asking

Just calculate the total number of computations then think of it which algorithm will work.

Because CPU can perform approx 1e8 computations in a second