C++20 sections · 1024 units
Open in CourseQuiz: Array Reversal
Understanding the algorithm
Check Your Understanding
For array {1,2,3,4,5}, how many swaps does the two-pointer reversal perform?
- A.5
- B.3
- C.4
- D.2
Understanding the algorithm
For array {1,2,3,4,5}, how many swaps does the two-pointer reversal perform?