This is a classic extension of 84. Largest Rectangle in Histogram . 1. Problem Statement (Simple Explanation) You’re given a binary matrix matrix of size rows x cols filled with '0's and '1's. You must find the area of the largest rectangle containing only '1's and return that area. The rectangle must be axis-aligned. It can span multiple rows and columns. 2. Examples Example 1: Input: matrix = [ ["1","0","1","0","0"], ["1","0","1","1","1"], ["1","1","1","1","1"], ["1","0","0","1","0"] ] Largest all-ones rectangle has area 6 : For example, from row 1 to row 2, columns 2 to 4 (0-based), i.e.: [ [1,1,1], [1,1,1] ] Output: 6 Example 2: Input: [["0"]] No '1's → max area = 0. Output: 0 Example 3: Input: [["1"]] Single cel...