Solución
solution.tsTypeScript
def search_matrix(matrix: list[list[int]], target: int) -> bool:
# Escribe tu solución aquí
if matrix == []:
return False
for i in range(0, len(matrix)):
for j in range(0, len(matrix[0])):
if matrix[i][j] == target:
return True
return False0respuestas