传送门 Description Secret agent Maria was sent to Algorithms City to carry out an especially dangerous mission. After several thrilling events we find he ...
分类:
其他好文 时间:
2016-09-17 00:18:11
阅读次数:
227
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5492 每个数字只能走下或者走右,问你方差最小多少? 方差 = (n + m - 1) * sum(a[i]^2) + sum(a[i]) 我们可以定义dp[i][j][k]为(i, j)点和为k的最小平 ...
分类:
其他好文 时间:
2016-09-16 19:48:50
阅读次数:
170
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2016-09-16 19:40:27
阅读次数:
98
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 ="aabcc",s2 ="dbbca", When s3 ="aadbbcbcac", return ...
分类:
其他好文 时间:
2016-09-16 16:52:11
阅读次数:
113
linux如何模糊查找一个文件 在当前目录下搜索指定文件: find . -name test.txt 在当前目录下模糊搜索文件: find . -name '*.txt' 在当前目录下搜索特定属性的文件: find . -amin -10 # 查找在系统中最后10分钟访问的文件find . -at ...
分类:
系统相关 时间:
2016-09-15 19:11:36
阅读次数:
226
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have ...
分类:
其他好文 时间:
2016-09-15 17:56:15
阅读次数:
108
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 comple ...
分类:
其他好文 时间:
2016-09-15 13:44:57
阅读次数:
137
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 path. ...
分类:
其他好文 时间:
2016-09-15 13:43:33
阅读次数:
131
使用find命令,可以指定问及那的名称、类别、时间、大小以及权限等,来查找出你想要的文件 语法: fiind [路径] [参数] [-print] 参数详解: 1.-name 按照文件名查找文件 文件名选项是find命令最常用的选项,要么单独使用该选项,要么和其他选项一起使用。 可以使用某种文件名模 ...
分类:
系统相关 时间:
2016-09-15 13:41:11
阅读次数:
407
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
其他好文 时间:
2016-09-15 12:22:53
阅读次数:
144