Math Fundamentals18 sections · 814 units
Open in Course

Quiz: Complexity Analysis

Knowledge check

Check Your Understanding

A loop runs while k<nk < n and kk doubles each iteration. How many iterations?

  1. A.O(logn)O(\log n)
  2. B.O(n)O(\sqrt{n})
  3. C.O(n)O(n)
  4. D.O(n2)O(n^2)
Start the roadmap to answer the quizzes and solve the challenges