摘要: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2021-04-08 09:12 北叶青藤 阅读(48) 评论(0) 推荐(0) 编辑
摘要: Given a root of an N-ary tree, you need to compute the length of the diameter of the tree. The diameter of an N-ary tree is the length of the longest  阅读全文
posted @ 2021-04-08 08:34 北叶青藤 阅读(38) 评论(0) 推荐(0) 编辑
摘要: You have a graph of n nodes. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is an edge between ai and bi 阅读全文
posted @ 2021-04-08 08:17 北叶青藤 阅读(166) 评论(0) 推荐(0) 编辑
摘要: We are given a list schedule of employees, which represents the working time for each employee. Each employee has a list of non-overlapping Intervals, 阅读全文
posted @ 2021-04-08 08:13 北叶青藤 阅读(56) 评论(0) 推荐(0) 编辑
摘要: You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rota 阅读全文
posted @ 2021-04-08 07:48 北叶青藤 阅读(59) 评论(0) 推荐(0) 编辑
摘要: S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per 阅读全文
posted @ 2021-04-08 02:53 北叶青藤 阅读(42) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: I 阅读全文
posted @ 2021-04-08 00:15 北叶青藤 阅读(43) 评论(0) 推荐(0) 编辑