leetcode-potd

85. Maximal Rectangle

leetcode-potd

Given a rows x cols binary matrix filled with 0‘s and 1‘s, find the largest rectangle containing only 1‘s and return its area. Example 1: Input: matrix = […]

1518. Water Bottles

leetcode-potd

There are numBottles water bottles that are initially full of water. You can exchange numExchange empty water bottles from the market with one full

Scroll to Top