Time Complexity
Count how the number of basic steps grows with input size $n$.
Easy
A single loop is ; two nested loops ; halving each step . Rough guide for 1 second: for , for , for .
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.