Problem Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transa...
分类:
其他好文 时间:
2014-06-05 09:33:52
阅读次数:
342
Ubuntu 安装oepnssh 报错
有时候由于linux版本不够新,或者安装的包不知是什么原因坏了。报如下错误
unable to correct the problems, you have held broken prckages
可以用如下命令解决
sudo apt-get autoclean
sudo apt-get autoremov...
分类:
其他好文 时间:
2014-06-05 09:31:23
阅读次数:
174
3D人物造型When drawn animation frame by frame, the
images have a tendency to change, at least a little, but it increased by at
least movement, even his ca...
分类:
其他好文 时间:
2014-06-02 22:19:26
阅读次数:
379
ProblemYou want your UI components to have
gravity, so that if they are dragged up to the top of the screen, they will
descend on their own. Combining...
分类:
其他好文 时间:
2014-06-02 20:01:49
阅读次数:
243
In DOS you may have been used to D: to change
to the D drive. Cygwin provides a mapping of DOS/Windows drives to the unix file
system by mapping or mo...
问题:
Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],
and [3,2,1].
分析:
...
分类:
其他好文 时间:
2014-06-01 15:04:42
阅读次数:
259
Caused by: java.sql.SQLException: You have an error
in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right s...
分类:
数据库 时间:
2014-06-01 11:31:29
阅读次数:
371
In the 2020 grid below, four numbers along a diagonal line have been marked in red.
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 ...
分类:
其他好文 时间:
2014-06-01 10:04:38
阅读次数:
419
【题目】
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1->1->2->3, return 2->3.
【题意】
给定一个有序链表,删出其中重复出现的值...
分类:
其他好文 时间:
2014-05-31 21:14:11
阅读次数:
333
DescriptionYou have an
arraya[1],?a[2],?...,?a[n], containing distinct integers from1ton. Your task is
to sort this array in increasing order with the...
分类:
其他好文 时间:
2014-05-31 01:35:23
阅读次数:
318