C++20 sections · 1024 units
Open in Course

Quiz: Practical Application

Knowledge check

Check Your Understanding

You need to find the 3 smallest elements in unsorted vector v. Which approach is most efficient?

  1. A.Use partial_sort with n=3
  2. B.Use min_element 3 times
  3. C.Sort entire vector, take first 3
  4. D.Use lower_bound 3 times
Start the roadmap to answer the quizzes and solve the challenges