Some Confusion with the wording


  • 0
    L

    I looked at others' solution. To me, this problem does not make sense. The container should always consider the bars in the middle section since the lowest bar is the bar to limit total height of the water. For example, heights: 3 2 1 3, the solution says the max water it holds should be 9. But it only considers the bars on the two sides and ignored the lowest bar in the middle. So confused with question itself. I think this question should be rephrased.Using the title saying ''container with most water'' is misleading.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.