题目: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 concaten...
分类:
其他好文 时间:
2014-10-22 00:29:15
阅读次数:
189
题意:有n个选手,铁人三项有连续的三段,对于每段场地选手i分别以vi, ui 和 wi匀速通过。对于每个选手,问能否通过调整每种赛道的长度使得他成为冠军(不能并列)。分析:粗一看,这不像一道计算几何的题目。假设赛道总长度是1,第一段长x,第二段长y,第三段则是1-x-y那么可以计算出每个选手完成比赛...
分类:
其他好文 时间:
2014-10-21 23:04:12
阅读次数:
171
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 lea...
分类:
其他好文 时间:
2014-10-21 22:58:39
阅读次数:
235
substring 方法用于提取字符串中介于两个指定下标之间的字符substring(start,end)开始和结束的位置,从零开始的索引参数 描述start 必需。一个非负的整数,规定要提取的子串的第一个字符在 stringObject 中的位置。stop 可选。一个非负的整数,比要提取的子...
分类:
Web程序 时间:
2014-10-21 19:18:17
阅读次数:
184
利用MySQL GROUP_CONCAT函数实现聚合乘法。...
分类:
数据库 时间:
2014-10-21 15:30:00
阅读次数:
263
sql 与 oracle 之间的 语法差别。 简单的几个函数转换 sql-> Up_Time=getdate(), isnull(), substring(), charindex(), len(), oracle-> Up_Time=sysdate, nvl()...
分类:
数据库 时间:
2014-10-21 15:17:40
阅读次数:
227
1 function S4() {2 return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);3 }4 function NewGuid() {5 return (S4() + S4() + "-"...
分类:
Web程序 时间:
2014-10-21 12:09:24
阅读次数:
216
昨天给大家介绍了一款基于jquery ui漂亮的可拖动div实例,今天要给大家分享一款基于jquery的可拖动div。这款可拖动div只要引用jquery就可以,无需引用jquery ui。还实时记录的鼠标的坐标。一起看下效果图吧。在线预览源码下载实现的代码。html代码: DRAGGIN' WI....
分类:
Web程序 时间:
2014-10-21 10:00:30
阅读次数:
215
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2014-10-20 21:11:05
阅读次数:
203
Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example,...
分类:
其他好文 时间:
2014-10-20 18:53:45
阅读次数:
236