摘要: You are given an m x n binary matrix grid. An island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may 阅读全文
posted @ 2020-04-16 14:29 CNoodle 阅读(256) 评论(0) 推荐(0)
摘要: You are given an m x n grid where each cell can have one of three values: 0 representing an empty cell, 1 representing a fresh orange, or 2 representi 阅读全文
posted @ 2020-04-16 13:13 CNoodle 阅读(240) 评论(0) 推荐(0)
摘要: Given an m x n binary matrix mat, return the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Note: The number o 阅读全文
posted @ 2020-04-16 12:07 CNoodle 阅读(215) 评论(0) 推荐(0)
摘要: You are given a string s containing lowercase English letters, and a matrix shift, where shift[i] = [direction, amount]: direction can be 0 (for left 阅读全文
posted @ 2020-04-16 05:52 CNoodle 阅读(578) 评论(0) 推荐(0)
摘要: Given an integer array nums that may contain duplicates, return all possible subsets (the power set). The solution set must not contain duplicate subs 阅读全文
posted @ 2020-04-16 03:03 CNoodle 阅读(426) 评论(0) 推荐(0)
摘要: Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Retu 阅读全文
posted @ 2020-04-16 02:40 CNoodle 阅读(439) 评论(0) 推荐(0)