摘要: 题目 There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and city b is connected directly w 阅读全文
posted @ 2022-03-20 23:59 frankming 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by 阅读全文
posted @ 2022-03-20 23:17 frankming 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array of positive integers nums and a positive integer target, return the minimal length of a contiguous subarray [numsl, numsl+1, ..., nu 阅读全文
posted @ 2022-03-20 22:59 frankming 阅读(16) 评论(0) 推荐(0) 编辑