# Number Of Rectangles That Can Form The Largest Square (LeetCode 1725)
## Approach
For each rectangle take min(l,w); track the max side and how many times it appears.
## Tip
One pass, O(1) extra space.
Prep notes shared by the Linkjob AI team. Practice explaining solutions out loud with [Linkjob AI](https://www.linkjob.ai/).