Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-07-07 08:19:36
阅读次数:
151
微软近期Open的职位:Microsoft Launched the public cloud service-Azure in China on May 2013, Cosmos is the key component to Azure which support the platform of...
分类:
其他好文 时间:
2014-07-06 22:59:13
阅读次数:
267
Installing chrome on CentOS may be infeasible right now, becausechromeadoptsthe technique——C++11 which is unsupportedon CentOS.But we may choose to in...
分类:
其他好文 时间:
2014-07-06 21:17:00
阅读次数:
145
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-07-06 16:07:23
阅读次数:
204
Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation...
分类:
其他好文 时间:
2014-07-06 13:57:54
阅读次数:
155
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:
其他好文 时间:
2014-07-05 21:45:00
阅读次数:
202
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-05 20:43:45
阅读次数:
246
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.class Solution...
分类:
其他好文 时间:
2014-07-03 20:25:21
阅读次数:
219
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.此题目有两种解决思路:1)递归...
分类:
其他好文 时间:
2014-07-03 20:07:01
阅读次数:
199
refer linkThe"*and"+registers are for the system's clipboard (:help registers). Depending on your system, they may do different things. For instance, ...
分类:
其他好文 时间:
2014-07-03 12:10:56
阅读次数:
195