CodingEasy
Square matrix diagonal frequency check
Filed under Sabre
The question
Given an M x N matrix, if it is not square, make it square by padding remaining positions with 1. Check whether every element on the left diagonal appears in the matrix (excluding their left diagonal positions) strictly more than k times.
No write-up yet. Related questions below have one.
Related Sabre questions
Collected from public candidate posts and coding forums. Updated Nov 2026.