English

For Big O notation, state the difference between O(n) and O(n2 ). - Computer Science (Theory)

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?
2024-2025 (April) Specimen Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×