上一页 1 2 3 4 5 6 7 ··· 54 下一页
摘要: You are the manager of a basketball team. For the upcoming tournament, you want to choose the team with the highest overall score. The score of the te 阅读全文
posted @ 2021-04-09 21:38 北叶青藤 阅读(91) 评论(0) 推荐(0)
摘要: Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 0s and a closed island is an island to 阅读全文
posted @ 2021-04-09 10:48 北叶青藤 阅读(67) 评论(0) 推荐(0)
摘要: 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 北叶青藤 阅读(55) 评论(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 北叶青藤 阅读(49) 评论(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 北叶青藤 阅读(174) 评论(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 北叶青藤 阅读(63) 评论(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 北叶青藤 阅读(88) 评论(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 北叶青藤 阅读(46) 评论(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 北叶青藤 阅读(48) 评论(0) 推荐(0)
摘要: You are given an n x n binary matrix grid. You are allowed to change at most one 0 to be 1. Return the size of the largest island in grid after applyi 阅读全文
posted @ 2021-04-07 12:49 北叶青藤 阅读(91) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 54 下一页