题解 | #二维数组中的查找#
二维数组中的查找
https://www.nowcoder.com/practice/abc3fe2ce8e146608e868a70efebf62e
直接遍历判断就好了 似乎没有那么复杂 运行时间50ms也能接受
class Solution: def Find(self , target: int, array: List[List[int]]) -> bool: re = False for i in array: if target in i: re = True break return re