For a Maximum Segment Tree, which each node has an extra value max to store the maximum value in this node's interval. Implement a modify function wit ...
分类:
其他好文 时间:
2016-07-09 07:02:42
阅读次数:
210
Implement atoi to convert a string to an integer. Carefully consider all possible input cases. If you want a challenge, please do not see below and as ...
分类:
其他好文 时间:
2016-07-07 18:56:10
阅读次数:
161
先看 AbstractFetcher 这个可以理解就是,consumer中具体去kafka读数据的线程,一个fetcher可以同时读多个partitions的数据来看看 /** * Base class for all fetchers, which implement the connection... ...
分类:
其他好文 时间:
2016-07-06 21:32:24
阅读次数:
445
Implement a trie with insert, search, and startsWith methods. Note: You may assume that all inputs are consist of lowercase letters a-z. 终于进军trie树,tri ...
分类:
其他好文 时间:
2016-07-04 11:45:09
阅读次数:
177
1、编写一个java类,此类继承HttpServlet 继承:右击鼠标,source-override/Implement Methods,选择 HttpServlet 2、重写doGet()和doPost()方法 //继承于HttpServletpublic class HelloServlet ...
分类:
其他好文 时间:
2016-07-02 20:13:55
阅读次数:
172
50. Pow(x, n) 50. Pow(x, n) Total Accepted: 96891 Total Submissions: 348858 Difficulty: Medium Implement pow(x, n). Implement pow(x, n). Implement pow ...
分类:
其他好文 时间:
2016-07-02 14:30:07
阅读次数:
132
69. Sqrt(x) 69. Sqrt(x) Total Accepted: 99997 Total Submissions: 388728 Difficulty: Medium Implement int sqrt(int x). Compute and return the square ro ...
分类:
其他好文 时间:
2016-07-02 11:48:32
阅读次数:
115
Next Permutation
Total Accepted: 70533 Total
Submissions: 261357 Difficulty: Medium
Implement next permutation, which rearranges numbers into the lexicographically next great...
分类:
其他好文 时间:
2016-07-01 16:27:02
阅读次数:
123
https://leetcode.com/problems/lru-cache/ Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following op ...
分类:
系统相关 时间:
2016-07-01 01:18:19
阅读次数:
191