C - All About Squares
CodeChefOpen on judge ↗
Given a matrix $A$ of dimensions $ N \times M $ filled with 1's, 2's , 3's and 4's. Find the square with the largest area and consisting of the same digits and print it's side-length. ### Input: - First line consists of two integers $N$ and $M$, which denote the dimensions of the matrix. - The next $N$ lines , each consist of $M$ integers separated by space. - The $jth$ element of $ith$ line co
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start