Quiz: Boundary Finding

Test your understanding

Check Your Understanding

To find the last occurrence of target in a sorted array, which approach works?

  1. A.Find upper bound, then return the index before it
  2. B.Find any occurrence, then linear scan right
  3. C.Binary search, always move right when equal
  4. D.Find lower bound, then check the element before
Start the roadmap to answer the quizzes and solve the challenges