https://oj.leetcode.com/problems/trapping-rain-water/http://fisherlei.blogspot.com/2013/01/leetcode-trapping-rain-water.htmlpublicclassSolution{
publicinttrap(int[]A){
//对于某坐标有
//-leftmax它左边最高
//-rightmax它右边最高
//-val它本身高度
//那么它的容..
分类:
移动开发 时间:
2015-01-02 07:34:08
阅读次数:
195
https://oj.leetcode.com/problems/path-sum-ii/http://fisherlei.blogspot.com/search?q=Path+Sum+II+/**
*Definitionforbinarytree
*publicclassTreeNode{
*intval;
*TreeNodeleft;
*TreeNoderight;
*TreeNode(intx){val=x;}
*}
*/
publicclassSolution{
publicList<List&..
分类:
其他好文 时间:
2015-01-02 07:33:25
阅读次数:
151
原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:
编程语言 时间:
2014-12-31 08:41:24
阅读次数:
326
原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A linked list is given such that each node contains an additional random pointe...
分类:
编程语言 时间:
2014-12-31 08:40:56
阅读次数:
203
Some people have been experiencing WiFi problems with Ubuntu 10.10 since an update that happend just before Christmas 2010. The problem seems to be a ...
分类:
系统相关 时间:
2014-12-29 18:11:25
阅读次数:
229
题目大意: 求第k个v出现的索引解题思路: 如果能构造出一个数据结构,使得data[v][k]就是第k个v出现的索引值即可求解。data[v]表示数v出现的索引数组,data[v][k]表示第k个v出现的索引。Problem EEasy Problem from Rujia Liu?Though Rujia Liu usually sets hard problems for contest...
分类:
编程语言 时间:
2014-12-28 22:18:30
阅读次数:
173
Stat2.2x Probability(概率)课程由加州大学伯克利分校(University of California, Berkeley)于2014年在edX平台讲授。PDF笔记下载(Academia.edu)PRACTICE PROBLEMS FOR THE MIDTERMPROBLEM 1...
分类:
其他好文 时间:
2014-12-28 01:40:24
阅读次数:
149
题目地址:https://oj.leetcode.com/problems/majority-element/题目内容:Given an array of sizen, find the majority element. The majority element is the element th...
分类:
编程语言 时间:
2014-12-27 20:13:16
阅读次数:
140
题目地址:https://oj.leetcode.com/problems/excel-sheet-column-title/题目内容:Given a positive integer, return its corresponding column title as appear in an Ex...
分类:
其他好文 时间:
2014-12-27 06:44:00
阅读次数:
152
原文链接:Top 10 Client-Side Performance Problems in Web 2.0
分类:
其他好文 时间:
2014-12-27 01:26:15
阅读次数:
165