摘要:
200. 岛屿数量 class Solution: def numIslands(self, grid: List[List[str]]) -> int: def dfs(grid, i, j): if not 0 <= i < len(grid) or not 0 <= j < len(grid[ 阅读全文
摘要:
209. 长度最小的子数组 向右移动右边界,若>=target则收缩左边界 class Solution: def minSubArrayLen(self, target: int, nums: List[int]) -> int: res = float('inf') sum_ = 0 left 阅读全文