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-25 02:31:14
阅读次数:
210
有的时候,需要知道SQLSERVER执行了什么语句,可以用下面的方法:SELECT TOP 1000--创建时间QS.creation_time,--查询语句SUBSTRING(ST.text,(QS.statement_start_offset/2)+1,((CASE QS.statement_e...
分类:
数据库 时间:
2014-07-24 22:22:32
阅读次数:
208
Substring with Concatenation of All WordsYou are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices o...
分类:
其他好文 时间:
2014-07-24 22:04:02
阅读次数:
218
随机挑选一题试试手气。 问题描述: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, ...
分类:
其他好文 时间:
2014-07-24 21:55:32
阅读次数:
232
解题报告
求最长路。
用SPFA求最长路,初始化图为零,dis数组也为零
#include
#include
#include
#include
#include
#define inf 99999999
#define N 110
using namespace std;
int mmap[N][N],dis[N],vis[N],n;
void spfa(int s)
{
...
分类:
其他好文 时间:
2014-07-24 17:43:16
阅读次数:
280
每次做到截取字符串功能的时候都要在网上搜上一段时间,正好搜到有个总结的文章,就干脆考过来和大家分享一下,嘿嘿。。。string str="123abc456";int i=3;1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,st...
分类:
其他好文 时间:
2014-07-24 14:48:15
阅读次数:
286
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2014-07-24 12:11:55
阅读次数:
253
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100, 4, 200, 1, 3, 2], The lo...
分类:
其他好文 时间:
2014-07-24 00:49:07
阅读次数:
200
第一个--->字符串的截取substring()方法 substring(a,b)--->【a,b)区间截取字符。下标从0开始。从a下标开始,截取到b下标的前一个字符。返回一个新的字符串 1 2 11 12 13 14 15 16 Vi...
分类:
Web程序 时间:
2014-07-23 20:45:15
阅读次数:
289
Description: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...
分类:
其他好文 时间:
2014-07-23 20:35:05
阅读次数:
246