leetle

Daily challenge for 2025-08-31

243. Search a 2D Matrix (Row & Column Sorted)

Given an m x n matrix where each row is sorted ascending and each column is sorted ascending, write a function solve that returns true if target is in the matrix and false otherwise.

Example:
Input: matrix = [[1,4,7],[2,5,8],[3,6,9]], target = 5
Output: true

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