You are given a 2D 0-indexed integer array dimensions. For all indices i, 0 <= i < dimensions.length, dimensions[i][0] represents the length and dimensions[i][1] represents the width of the rectangle ...
# so for each height, if next height is larger than it, we can "expand" the rectangle width to 2 # i tried to do the expansion and tracking area like that, with forward and backward pass to expand ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results