Does this mean to find the total "area"? NO
This is to find the max area between any of two lines.
You really should refine it a little bit.
Thank you - the problem should really be refined.
I was thinking about the lines are always there, so the [1,2,1] problem look like this in my mind
Since the middle piece is too tall, one cannot pick [1,3] as a container, one can either choose [1,2] or [2, 3] as a container, and in either case the answer should be 1.
But the expected result tell me otherwise ... it looks like we are given a bunch of lines, and we can choose two of them to appear so that it creates a container with max area.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.