Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Moving the Shorter Pointer
Test your understanding
Check Your Understanding
In Container With Most Water with pointers at heights [3, 8] and width 5, why move the pointer at height 3?
- A.3 is smaller than 8
- B.We always move the left pointer first
- C.To reduce the width faster
- D.Moving the pointer at 8 cannot increase area since height is still limited by 3