Find the contiguous subarray within an array
(containing at least one number) which has the largest sum.For example, given
the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-06-20 08:59:38
阅读次数:
235
The paper "Optimal Decoding of Linear Codes for
Minimizing Symbol Error Rate", which is the source of the BCJR decoding
algorithm, is my current obje....
分类:
其他好文 时间:
2014-06-11 07:35:20
阅读次数:
250
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-06-08 16:27:47
阅读次数:
231
Find the contiguous subarray within an array (containing at least one number) which has the largest sum....
分类:
其他好文 时间:
2014-06-08 15:54:08
阅读次数:
258
【题目】
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.
...
分类:
其他好文 时间:
2014-06-08 15:11:58
阅读次数:
298
Linux不像Mac有opendir这个命令,但是自带了nautilus打开文件夹命令,所以我们可以使用命令指向来实现使用以下命令在shell终端中以窗口形式打开一个文件夹nautilus
dirname可以用 alias 命令来给nautilus命令重新起名字,容易记住alias opendir....
分类:
其他好文 时间:
2014-06-08 02:05:03
阅读次数:
389
题目链接 Given a m x n grid filled with non-negative
numbers, find a path from top left to bottom right which minimizes the sum of
all numbers along its p...
分类:
其他好文 时间:
2014-06-07 21:59:08
阅读次数:
344
About fork() in linux:parent/child processes
created by fork() share the same file table (linux file descriptor or called
`open file descriptor`)Which...
分类:
系统相关 时间:
2014-06-07 21:47:58
阅读次数:
443
Tomcat 启动报
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
提示的解决办法:...
分类:
其他好文 时间:
2014-06-07 13:08:51
阅读次数:
309
离散化+暴力
Consecutive Blocks
Time Limit: 2 Seconds Memory Limit: 65536 KB
There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to N from left to right) which are lined up in a row. An...
分类:
其他好文 时间:
2014-06-07 13:08:07
阅读次数:
193