上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 54 下一页
摘要: Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warme 阅读全文
posted @ 2019-08-01 13:56 北叶青藤 阅读(186) 评论(0) 推荐(0)
摘要: A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y). Given a starting point (sx, sy) and a target point (tx, t 阅读全文
posted @ 2019-08-01 12:04 北叶青藤 阅读(172) 评论(0) 推荐(0)
摘要: Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the game. The snak 阅读全文
posted @ 2019-07-31 14:10 北叶青藤 阅读(207) 评论(0) 推荐(0)
摘要: Find the second largest node in the BST 分析: 如果root有右节点,很明显第二大的node有可能在右子树里。唯一不满足的条件就是右子树只有一个node. 这个时候root就是第二大node. 所以我们需要把root(可能是第二大node)也传下去。 如果ro 阅读全文
posted @ 2019-07-30 13:23 北叶青藤 阅读(176) 评论(0) 推荐(0)
摘要: You want to build a house on an empty land which reaches all buildings in the shortest amount of distance. You can only move up, down, left and right. 阅读全文
posted @ 2019-07-29 03:11 北叶青藤 阅读(281) 评论(0) 推荐(0)
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2019-07-28 03:44 北叶青藤 阅读(283) 评论(0) 推荐(0)
摘要: Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of dup 阅读全文
posted @ 2019-07-28 03:22 北叶青藤 阅读(633) 评论(0) 推荐(0)
摘要: Two strings X and Y are similar if we can swap two letters (in different positions) of X, so that it equals Y. For example, "tars" and "rats" are simi 阅读全文
posted @ 2019-07-28 01:36 北叶青藤 阅读(252) 评论(0) 推荐(0)
摘要: Given many words, words[i] has weight i. Design a class WordFilter that supports one function, WordFilter.f(String prefix, String suffix). It will ret 阅读全文
posted @ 2019-07-27 14:18 北叶青藤 阅读(283) 评论(0) 推荐(0)
摘要: Design a hit counter which counts the number of hits received in the past 5 minutes. Each function accepts a timestamp parameter (in seconds granularity) and you may assume that calls are being made ... 阅读全文
posted @ 2019-07-26 13:53 北叶青藤 阅读(199) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 54 下一页