C++20 sections · 1024 units
Open in CourseQuiz: next_permutation Setup
Knowledge check
Check Your Understanding
What should you do before using next_permutation to generate all permutations?
- A.Reverse the vector
- B.Sort the vector
- C.Remove duplicates
- D.Shuffle the vector