Advertisements
Advertisements
Question
For Big O notation, state the difference between O(n) and O(n2 ).
One Line Answer
Solution
- O(n) – Single loop
- O(n2 ) – Nested loop
shaalaa.com
Big O Notation for Computational Complexity
Is there an error in this question or solution?