统计每一行"值等于target的数量",然后返回所有行中的最大值。很python
class Solution:
def Find(self , target: int, array: List[List[int]]) -> bool:
return max([i.count(target) for i in array])

统计每一行"值等于target的数量",然后返回所有行中的最大值。很python
class Solution:
def Find(self , target: int, array: List[List[int]]) -> bool:
return max([i.count(target) for i in array])