Return all diagonals of a rectangular two-dimensional matrix

mediumLast edited: August 2, 2025