上一页 1 2 3 4 5 6 ··· 53 下一页
摘要: Design a stack which supports the following operations. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with maxSize  阅读全文
posted @ 2021-04-27 23:00 北叶青藤 阅读(98) 评论(0) 推荐(0) 编辑
摘要: You are given a data structure of employee information, which includes the employee's unique id, their importance value and their direct subordinates' 阅读全文
posted @ 2021-04-12 23:22 北叶青藤 阅读(54) 评论(0) 推荐(0) 编辑
摘要: Design a logger system that receives a stream of messages along with their timestamps. Each unique message should only be printed at most every 10 sec 阅读全文
posted @ 2021-04-12 22:44 北叶青藤 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto 阅读全文
posted @ 2021-04-09 23:59 北叶青藤 阅读(46) 评论(0) 推荐(0) 编辑
摘要: A permutation perm of n + 1 integers of all the integers in the range [0, n] can be represented as a string s of length n where: s[i] == 'I' if perm[i 阅读全文
posted @ 2021-04-09 22:47 北叶青藤 阅读(59) 评论(0) 推荐(0) 编辑
摘要: Given a n * n matrix grid of 0's and 1's only. We want to represent the grid with a Quad-Tree. Return the root of the Quad-Tree representing the grid. 阅读全文
posted @ 2021-04-09 22:32 北叶青藤 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 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 北叶青藤 阅读(77) 评论(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 北叶青藤 阅读(59) 评论(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 北叶青藤 阅读(46) 评论(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 北叶青藤 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 53 下一页