Quiz: 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?

  1. A.3 is smaller than 8
  2. B.We always move the left pointer first
  3. C.To reduce the width faster
  4. D.Moving the pointer at 8 cannot increase area since height is still limited by 3
Start the roadmap to answer the quizzes and solve the challenges