Solución
solution.tsTypeScript
export function searchMatrix(matrix: number[][], target: number): boolean {
for(const row of matrix){
if(row.at(0) > target) return false;
if(row.includes(target)) return true;
}
return false;
}0respuestas