You are given an array of rectangles rectangles where rectangles[i] = [l_i, w_i] represents the l_i and a width of w_i.
You can cut the l_i and w_i. The maximum side length of a square obtained from cutting this rectangle is
Let maxLen be the side length of the largest square that can be formed from any of the given rectangles.
Return the total number of rectangles that can produce a square with a side length of maxLen.
Constraints:
rectangles.length
rectangles[i].length
l_i, w_i
l_i w_i
You are given an array of rectangles rectangles where rectangles[i] = [l_i, w_i] represents the l_i and a width of w_i.
You can cut the l_i and w_i. The maximum side length of a square obtained from cutting this rectangle is
Let maxLen be the side length of the largest square that can be formed from any of the given rectangles.
Return the total number of rectangles that can produce a square with a side length of maxLen.
Constraints:
rectangles.length
rectangles[i].length
l_i, w_i
l_i w_i