上一页 1 2 3 4 5 6 7 8 ··· 33 下一页
摘要: Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adja 阅读全文
posted @ 2020-04-16 10:18 xuan_abc 阅读(80) 评论(0) 推荐(0)
摘要: Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functions: put(key, value) : Insert 阅读全文
posted @ 2020-04-15 21:32 xuan_abc 阅读(122) 评论(0) 推荐(0)
摘要: Given a binary tree, return the values of its boundary in anti-clockwise direction starting from root. Boundary includes left boundary, leaves, and ri 阅读全文
posted @ 2020-04-15 20:30 xuan_abc 阅读(132) 评论(0) 推荐(0)
摘要: There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied or vacant changes according to t 阅读全文
posted @ 2020-04-15 04:33 xuan_abc 阅读(193) 评论(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 @ 2020-04-14 21:49 xuan_abc 阅读(154) 评论(0) 推荐(0)
摘要: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num 阅读全文
posted @ 2020-04-14 21:07 xuan_abc 阅读(203) 评论(0) 推荐(0)
摘要: Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word 阅读全文
posted @ 2020-04-14 07:52 xuan_abc 阅读(125) 评论(0) 推荐(0)
摘要: Design an in-memory file system to simulate the following functions: ls: Given a path in string format. If it is a file path, return a list that only 阅读全文
posted @ 2020-04-14 04:29 xuan_abc 阅读(304) 评论(0) 推荐(0)
摘要: We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid 阅读全文
posted @ 2020-04-06 06:44 xuan_abc 阅读(144) 评论(0) 推荐(0)
摘要: Given n ropes of different lengths, we need to connect these ropes into one rope. We can connect only 2 ropes at a time. The cost required to connect 阅读全文
posted @ 2020-04-06 04:24 xuan_abc 阅读(142) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 33 下一页