Problem Description:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null...
分类:
其他好文 时间:
2014-07-07 16:19:01
阅读次数:
188
Problem Description:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.Solution: 1 public UndirectedGraph...
分类:
其他好文 时间:
2014-07-07 16:11:57
阅读次数:
192
Problem Description:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf ...
分类:
其他好文 时间:
2014-07-07 16:01:34
阅读次数:
223
Problem Description:Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Ret...
分类:
其他好文 时间:
2014-07-07 15:55:48
阅读次数:
208
Problem Description:Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your pr...
分类:
其他好文 时间:
2014-07-07 15:46:01
阅读次数:
267
Problem Description:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Popul...
分类:
其他好文 时间:
2014-07-07 15:45:18
阅读次数:
166
Problem Description:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For ex...
分类:
其他好文 时间:
2014-07-07 15:29:11
阅读次数:
280
//给Checkbox提供全选功能$("#checkall").click(function(){ if(this.checked){ $("input[name='checkname[]']").each(function(){ this.checked...
分类:
Web程序 时间:
2014-07-03 11:16:45
阅读次数:
216
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:
其他好文 时间:
2014-07-03 11:09:35
阅读次数:
185
Given a sorted linked list, delete all duplicates such that each element appear only once.
分类:
其他好文 时间:
2014-07-02 00:33:49
阅读次数:
204