Python naive solution accpeted


  • -4
    B
    class Solution(object):
        def searchMatrix(self, matrix, target):
            return any(target in line for line in matrix)

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.