Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: 3Sum
Test your understanding
Check Your Understanding
In 3Sum, why sort the array first?
- A.To find the minimum triplet
- B.To enable two-pointer search and skip duplicates easily
- C.To use binary search
- D.To reduce space complexity