leetle

Daily challenge for 2025-09-11

254. Toeplitz Matrix

Write a function solve that returns true if the matrix matrix is Toeplitz: every diagonal from top-left to bottom-right has the same elements.

Example:
Input: matrix = [[1,2,3],[4,1,2],[5,4,1]]
Output: true

Run this challenge interactively in Python or JavaScript when the app loads.