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
$(this).children().eq(1).text()获取的是显示的值$(this).children().eq(1).html()获取的是之间的所有内容$('.trSelected',grid).find("td").eq(7).text();获取的是选中的某行的内容遍历表<table i...
分类:
Web程序 时间:
2014-07-05 20:21:29
阅读次数:
252
HDU 4003 Find Metal Mineral 树形dp...
分类:
其他好文 时间:
2014-07-03 17:27:48
阅读次数:
150
SPOJ Problem Set (classical)
694. Distinct Substrings
Problem code: DISUBSTR
Given a string, we need to find the total number of its distinct substrings.
Input
T- number of ...
分类:
其他好文 时间:
2014-07-03 16:32:42
阅读次数:
212
android4.4系统解决“ERRORcouldn't find native method”方法 今天笔者在移植一个tv模块从android4.2到android4.4系统的设备上,同样的代码,同样的方法,就是运行不起来。大概方法就是上层写一个apk,调用一个静态的java库,java库加载调用JNI的库文件,这一套代码在4.2上都是好好的,正常能跑,移到4.4上编译也都没...
分类:
移动开发 时间:
2014-07-03 16:30:04
阅读次数:
190
在一个字符串中求不重复子串的最大长度是一个经典的贪心法求解问题(说子串自然是连续的,子序列则不要求连续)。
先给出leetcode上这题的描述:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring wit...
分类:
其他好文 时间:
2014-07-03 16:24:55
阅读次数:
281
find命令的参数;pathname:find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print:find命令将匹配的文件输出到标准输出。-exec:find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为‘command‘{}\;,注意{}和\;之间的空格。-ok:和-..
分类:
其他好文 时间:
2014-07-03 15:27:57
阅读次数:
238
语法:findpath-option[-print][-exec-okcommand]{}\;#-print将查找到的文件输出到标准输出#-execcommand{}\;-----将查到的文件执行command操作,{}和\;之间有空格#-ok和-exec相同,只不过在操作前要询用户-namefilename#查找名为filename的文件-perm#按执行权限来查找-useruser..
分类:
系统相关 时间:
2014-07-03 14:24:25
阅读次数:
278
Given a binary tree, find its maximum depth.
分类:
其他好文 时间:
2014-07-03 13:19:33
阅读次数:
251
You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenati...
分类:
其他好文 时间:
2014-07-03 12:32:26
阅读次数:
133