C++20 sections · 1024 units
Open in Course

Quiz: next_permutation Setup

Knowledge check

Check Your Understanding

What should you do before using next_permutation to generate all permutations?

  1. A.Reverse the vector
  2. B.Sort the vector
  3. C.Remove duplicates
  4. D.Shuffle the vector
Start the roadmap to answer the quizzes and solve the challenges