Input: -2, -2, 2, 2, -2, -2, 2, 2 Output: 32 Expected: 16
why not 8 ?
I don't get your question. In this case, two rectangles fully overlap and therefore the area is just one rectangle's area.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.