Spot the bug: Container With Most Water that moves the wrong pointer

medium
Two pointers

Bug 11 of 12

This Python solution is supposed to do the following: Return the most water two of the vertical lines in height can hold. It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ