Here is a summary of the problem:
Example | X | Y | Answer |
0 | {0,1} | {1,0} | 1 |
1 | {0,-2,-1} | {-1,-1,-2} | 2 |
2 | {0,0,1,0,-1,2} | {0,1,2,-2,0,-1} | 12 |
3 | {9,-88,-40,98,-55,41,-38} | {-65,56,-67,7,-58,33,68} | 25110 |
The bounding box will be defined by the:
The width of the bounding box is maxx-minx, and the height is maxy-miny.