码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
(CF#257)B. Jzzhu and Sequences
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109?+?7). Input The first line contains two int...
分类:其他好文   时间:2014-07-22 22:49:33    阅读次数:296
FIFO
Pipes have no names, and their biggest disadvantage is that they can be used ?only?between processes that have a parent process in common. Two unrelated processes can-? not create a pipe betwee...
分类:其他好文   时间:2014-07-21 10:36:45    阅读次数:237
strdup函数的使用方法
函数名: strdup功 能: 将串复制到新建的位置处用 法: char *strdup(char *str);这个函数在linux的man手冊里解释为:The strdup() function returns a pointer toa new string which is aduplicat...
分类:其他好文   时间:2014-07-21 10:13:14    阅读次数:223
UVa 825 Walking on the Safe Side(DP)
Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:其他好文   时间:2014-07-20 22:33:53    阅读次数:295
字符串的分割
//一般的字符串的解析 NSString *string = @"One,Two,Three,Four"; NSLog(@"string:%@",string); NSArray *array = [string componentsSeparatedByString:@","]; NSLo...
分类:其他好文   时间:2014-07-20 21:35:54    阅读次数:200
【leetcode刷题笔记】Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-07-20 21:32:55    阅读次数:250
hdu2476String painter (区间DP)
Problem Description There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful string painter. With the help of the painter, you can chan...
分类:其他好文   时间:2014-07-20 15:41:50    阅读次数:213
Codeforces Round #257 (Div. 2) B Jzzhu and Sequences
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109?+?7). Input The first line contains two integers...
分类:其他好文   时间:2014-07-20 10:43:17    阅读次数:213
UVA - 10298 Power Strings (KMP求字符串循环节)
Description Problem D: Power Strings Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation a...
分类:其他好文   时间:2014-07-20 09:39:37    阅读次数:263
poj 2406 Power Strings KMP
Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponentiat...
分类:其他好文   时间:2014-07-19 23:47:19    阅读次数:418
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!