锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产欧美一区二区三区在线看蜜臀,日韩午夜在线电影,欧美日韩国产精品专区 http://m.shnenglu.com/ailab/鐢ㄥ績(jī)鍘誨仛濂借繖浠朵簨鎯?/description>zh-cn Sun, 24 Aug 2025 02:29:06 GMT Sun, 24 Aug 2025 02:29:06 GMT 60 other algorithm http://m.shnenglu.com/ailab/archive/2006/11/21/15523.htmlailab ailab Tue, 21 Nov 2006 14:11:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/21/15523.html http://m.shnenglu.com/ailab/comments/15523.html http://m.shnenglu.com/ailab/archive/2006/11/21/15523.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15523.html http://m.shnenglu.com/ailab/services/trackbacks/15523.html ]]>tree algorithm http://m.shnenglu.com/ailab/archive/2006/11/21/15522.htmlailab ailab Tue, 21 Nov 2006 14:11:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/21/15522.html http://m.shnenglu.com/ailab/comments/15522.html http://m.shnenglu.com/ailab/archive/2006/11/21/15522.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15522.html http://m.shnenglu.com/ailab/services/trackbacks/15522.html
聽(tīng)travel tree without stack or recursive
three travel using none recursive
delete a element in binary search tree
count words(using bst)
level-travel(using queue)
]]> array algorithm http://m.shnenglu.com/ailab/archive/2006/11/21/15521.htmlailab ailab Tue, 21 Nov 2006 14:11:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/21/15521.html http://m.shnenglu.com/ailab/comments/15521.html http://m.shnenglu.com/ailab/archive/2006/11/21/15521.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15521.html http://m.shnenglu.com/ailab/services/trackbacks/15521.html
insert a value into sorted array
select nth element
delete duplicate element
find there exits two same items in a array
find duplicate element a[0.N-1]. range from 1--N-1
a+b = s
find prim
occurs odd
findMidArray
]]> list algorithm http://m.shnenglu.com/ailab/archive/2006/11/21/15520.htmlailab ailab Tue, 21 Nov 2006 14:09:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/21/15520.html http://m.shnenglu.com/ailab/comments/15520.html http://m.shnenglu.com/ailab/archive/2006/11/21/15520.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15520.html http://m.shnenglu.com/ailab/services/trackbacks/15520.html
reverse_list (none-recursive && recursive)
merge list
find middle element of a list
find the nth element from the end of list
insert a element to a sorted single linked list
sort single linked list
swap every two element in a single linked list
circle && the start point
meet together
ploy multi
聽(tīng)
]]> string algorithm http://m.shnenglu.com/ailab/archive/2006/11/21/15517.htmlailab ailab Tue, 21 Nov 2006 13:58:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/21/15517.html http://m.shnenglu.com/ailab/comments/15517.html http://m.shnenglu.com/ailab/archive/2006/11/21/15517.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15517.html http://m.shnenglu.com/ailab/services/trackbacks/15517.html
word_count
reverse_string
reverse_word in a sentence
longest increasing subsequence
longest common subsequence
strstr
trim {space}
compress letter
atoi
atof
find all increasing subsequence
Find out if a string is a palindrome.
Delete characters from string 1 which are present in string 2
聽(tīng)An array of pointers to (very long) strings. Find pointers to the (lexicographically) smallest and largest strings
Given a sequence of characters. How will you convert the lower case characters to upper case characters.
]]> dream come true http://m.shnenglu.com/ailab/archive/2006/11/20/15482.htmlailab ailab Mon, 20 Nov 2006 15:32:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/20/15482.html http://m.shnenglu.com/ailab/comments/15482.html http://m.shnenglu.com/ailab/archive/2006/11/20/15482.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15482.html http://m.shnenglu.com/ailab/services/trackbacks/15482.html 涓や釜閾捐〃鏄惁鐩鎬氦錛屽鏋滅浉浜わ紝鎵懼嚭絎竴涓紑濮嬬浉浜ょ殑鑺傜偣
node聽(tīng)
*
list(node聽(tīng)
*
list1,node聽(tīng)
*
list2)
{ 聽(tīng)
if
(list1聽(tīng)
==
聽(tīng)
null
聽(tīng)
||
聽(tīng)list2聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)
return
聽(tīng)
null
; 聽(tīng)
int
聽(tīng)len1聽(tīng)
=
聽(tīng)
0
,len2聽(tīng)
=
聽(tīng)
0
; 聽(tīng)node聽(tīng)
*
p聽(tīng)
=
聽(tīng)list1,
*
q聽(tīng)
=
聽(tīng)list2; 聽(tīng)
while
(p
->
next聽(tīng)
!=
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)len1聽(tīng)
++
; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)
while
(q
->
next聽(tīng)
!=
聽(tīng)
null
) 聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)len2聽(tīng)
++
; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)q聽(tīng)
=
聽(tīng)q
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)
if
(p聽(tīng)
!=
聽(tīng)q) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)
return
聽(tīng)
null
; 聽(tīng)聽(tīng)len1聽(tīng)
++
; 聽(tīng)聽(tīng)len2聽(tīng)
++
; 聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)list1;q聽(tīng)
=
聽(tīng)list2; 聽(tīng)聽(tīng)
if
(len1聽(tīng)
>
聽(tīng)len2聽(tīng)) 聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
int
聽(tīng)diff聽(tīng)
=
聽(tīng)len1聽(tīng)
-
聽(tīng)len2; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)list1; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
while
(diff聽(tīng)
>
聽(tīng)
0
聽(tīng)
&&
聽(tīng)p
!=
聽(tīng)
null
;) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)p
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)diff聽(tīng)
--
; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)
else
聽(tīng) 聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
int
聽(tīng)diff聽(tīng)
=
聽(tīng)len2聽(tīng)
-
聽(tīng)len1; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)q聽(tīng)
=
聽(tīng)list2; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
while
(diff聽(tīng)
>
聽(tīng)
0
聽(tīng)
&&
聽(tīng)q聽(tīng)
!=
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{diff聽(tīng)
--
;聽(tīng)q
=
聽(tīng)q
->
next;}
聽(tīng)聽(tīng)}
聽(tīng)
while
(p聽(tīng)
!=
聽(tīng)q) 聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)p
->
next;q
=
聽(tīng)q
->
next; 聽(tīng)}
聽(tīng)聽(tīng)
return
聽(tīng)p 聽(tīng)聽(tīng)聽(tīng)聽(tīng) }
]]>dream come true 5! http://m.shnenglu.com/ailab/archive/2006/11/20/15481.htmlailab ailab Mon, 20 Nov 2006 14:11:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/20/15481.html http://m.shnenglu.com/ailab/comments/15481.html http://m.shnenglu.com/ailab/archive/2006/11/20/15481.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15481.html http://m.shnenglu.com/ailab/services/trackbacks/15481.html recursion and none-recursionnode聽(tīng) * reverse_list(node聽(tīng) * head) { 聽(tīng)聽(tīng) if (head聽(tīng) == 聽(tīng) null 聽(tīng) || 聽(tīng)head -> next聽(tīng) == 聽(tīng) null ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)head; 聽(tīng)聽(tīng)node聽(tīng) * cur聽(tīng) = 聽(tīng)head -> next; 聽(tīng)聽(tīng)node聽(tīng) * pre聽(tīng) = 聽(tīng)head; 聽(tīng)聽(tīng)node聽(tīng) * next聽(tīng) = 聽(tīng) null ; 聽(tīng)聽(tīng) while (cur聽(tīng) != 聽(tīng) null ) 聽(tīng)聽(tīng) { 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)next聽(tīng) = 聽(tīng)cur -> next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur -> next聽(tīng) = 聽(tīng)pre; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)pre聽(tīng) = 聽(tīng)cur;聽(tīng)聽(tīng) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur聽(tīng) = 聽(tīng)next; 聽(tīng)聽(tīng)} 聽(tīng)聽(tīng)head-> next聽(tīng) = 聽(tīng) null ; 聽(tīng)聽(tīng)head聽(tīng) = 聽(tīng)pre; 聽(tīng)聽(tīng)reurn聽(tīng)head; } node聽(tīng) * reverse_list(node聽(tīng) * head) { 聽(tīng)聽(tīng) if (head聽(tīng) == 聽(tīng) null 聽(tīng) || 聽(tīng)head -> next聽(tīng) == 聽(tīng) null ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)head; 聽(tīng)聽(tīng)node聽(tīng) * cur聽(tīng) = 聽(tīng)head -> next; 聽(tīng)聽(tīng)node聽(tīng) * next聽(tīng) = 聽(tīng) null ; 聽(tīng)聽(tīng)head -> next聽(tīng) = 聽(tīng) null ; 聽(tīng)聽(tīng) while (cur聽(tīng) != 聽(tīng) null ) 聽(tīng) { 聽(tīng)聽(tīng)聽(tīng)聽(tīng)next聽(tīng) = 聽(tīng)cur -> next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur -> next聽(tīng) = 聽(tīng)head; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)head聽(tīng) = 聽(tīng)cur; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur聽(tīng) = 聽(tīng)next; 聽(tīng)} 聽(tīng)聽(tīng)return 聽(tīng)head; 聽(tīng)聽(tīng) } ]]> dream come true! http://m.shnenglu.com/ailab/archive/2006/11/20/15480.htmlailab ailab Mon, 20 Nov 2006 14:04:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/20/15480.html http://m.shnenglu.com/ailab/comments/15480.html http://m.shnenglu.com/ailab/archive/2006/11/20/15480.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15480.html http://m.shnenglu.com/ailab/services/trackbacks/15480.html
node聽(tīng)
*
merge(node聽(tīng)
*
head1,node聽(tīng)
*
head2)
{ 聽(tīng)聽(tīng)
if
(head1聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
return
聽(tīng)head2; 聽(tīng)聽(tīng)
if
(head2聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
return
聽(tīng)head1; 聽(tīng)聽(tīng)reverse_list(
&
head2); 聽(tīng)聽(tīng)node聽(tīng)
*
head3聽(tīng)
=
聽(tīng)
null
,
*
cur聽(tīng)
=
聽(tīng)
null
; 聽(tīng)聽(tīng)node聽(tīng)
*
p聽(tīng)
=
聽(tīng)head1,
*
q聽(tīng)
=
聽(tīng)head2; 聽(tīng)聽(tīng)
while
(p聽(tīng)
!=
聽(tīng)
null
聽(tīng)
&&
聽(tīng)q聽(tīng)
!=
聽(tīng)
null
) 聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)
if
(p
->
value聽(tīng)
<
聽(tīng)q
->
value) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
if
(head3聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)head3聽(tīng)
=
聽(tīng)p; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur聽(tīng)
=
聽(tīng)p; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)p
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
else
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur
->
next聽(tīng)
=
聽(tīng)p; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur聽(tīng)
=
聽(tīng)p; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)p聽(tīng)
=
聽(tīng)p
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
else
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
if
(head3聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)head3聽(tīng)
=
聽(tīng)q; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur聽(tīng)
=
聽(tīng)q; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)q聽(tīng)
=
聽(tīng)q
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
else
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
{ 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur
->
next聽(tīng)
=
聽(tīng)q; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur聽(tīng)
=
聽(tīng)q; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)q
=
q
->
next; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)
if
(p聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur
->
next聽(tīng)
=
聽(tīng)q; 聽(tīng)聽(tīng)聽(tīng)
if
(q聽(tīng)
==
聽(tīng)
null
) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)cur
->
next聽(tīng)
=
聽(tīng)p; 聽(tīng)聽(tīng)聽(tīng)
return
聽(tīng)head3; }
]]> dream come true!(4) strstr http://m.shnenglu.com/ailab/archive/2006/11/20/15478.htmlailab ailab Mon, 20 Nov 2006 13:50:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/20/15478.html http://m.shnenglu.com/ailab/comments/15478.html http://m.shnenglu.com/ailab/archive/2006/11/20/15478.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15478.html http://m.shnenglu.com/ailab/services/trackbacks/15478.html char 聽(tīng) * strstr( const 聽(tīng) char 聽(tīng) * str, const 聽(tīng) char 聽(tīng) * sub) { 聽(tīng)聽(tīng) if (str聽(tīng) == 聽(tīng) null 聽(tīng) || 聽(tīng)sub聽(tīng) == 聽(tīng) null ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng) null ; 聽(tīng)聽(tīng) const 聽(tīng) char 聽(tīng) * p聽(tīng) = 聽(tīng)str; 聽(tīng)聽(tīng) const 聽(tīng) char 聽(tīng) * q聽(tīng) = 聽(tīng)sub; 聽(tīng)聽(tīng) while ( * str聽(tīng) != 聽(tīng) ' \0 ' 聽(tīng) && 聽(tīng) * sub聽(tīng) != 聽(tīng) ' \0 ' ) 聽(tīng)聽(tīng) { 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) if ( * str ++ 聽(tīng) != 聽(tīng) * sub ++ ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) { 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)str聽(tīng) = 聽(tīng) ++ p; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)sub聽(tīng) = 聽(tīng)q; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)} 聽(tīng)聽(tīng)聽(tīng)} 聽(tīng)聽(tīng)if ( * sub聽(tīng) == 聽(tīng) ' \0 ' ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)p; 聽(tīng)聽(tīng) else 聽(tīng)聽(tīng)聽(tīng)聽(tīng)return 聽(tīng) null ; } char 聽(tīng) * strstr( const 聽(tīng) char 聽(tīng) * str, const 聽(tīng) char 聽(tīng) * sub) { 聽(tīng)聽(tīng) if (str聽(tīng) == 聽(tīng) null 聽(tīng) || 聽(tīng)sub聽(tīng) == 聽(tīng) null ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng) null ; 聽(tīng)聽(tīng) const 聽(tīng) char 聽(tīng) * p聽(tīng) = 聽(tīng)str; 聽(tīng)聽(tīng) const 聽(tīng) char 聽(tīng) * q聽(tīng) = 聽(tīng)sub; 聽(tīng)聽(tīng) for (; * str聽(tīng) != 聽(tīng) ' \0 ' 聽(tīng);str ++ ) 聽(tīng)聽(tīng) { 聽(tīng)聽(tīng)聽(tīng)聽(tīng) if ( * str聽(tīng) != 聽(tīng) * sub) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) continue ; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)p聽(tīng) = 聽(tīng)str; 聽(tīng)聽(tīng)聽(tīng)聽(tīng) while ( 1 ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng) { 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) if ( * sub聽(tīng) == 聽(tīng) ' \0 ' ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)str; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) if ( * p ++ 聽(tīng) != 聽(tīng) * sub ++ ) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) break ; 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)} 聽(tīng) 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)sub聽(tīng) = 聽(tīng)q; } ]]>dream come true!(3) http://m.shnenglu.com/ailab/archive/2006/11/20/15474.htmlailab ailab Mon, 20 Nov 2006 13:20:00 GMT http://m.shnenglu.com/ailab/archive/2006/11/20/15474.html http://m.shnenglu.com/ailab/comments/15474.html http://m.shnenglu.com/ailab/archive/2006/11/20/15474.html#Feedback 0 http://m.shnenglu.com/ailab/comments/commentRss/15474.html http://m.shnenglu.com/ailab/services/trackbacks/15474.html a[k+1:n-1]浜ゆ崲浣嶇疆錛岃姹傜畻娉曞湪鏈鍧忕殑鎯呭喌涓嬭楁椂O(n)錛屼笖鐢ㄥ埌鐨勮緟鍔╃┖闂翠負(fù)O(1)銆?br /> in fact,the essence of above question is "revers two times" (a'b')' = ba;void 聽(tīng)reverse( int 聽(tīng) * a, int 聽(tīng)n, int 聽(tīng)k) { 聽(tīng)聽(tīng) if (a聽(tīng) == 聽(tīng) null 聽(tīng) || 聽(tīng)n聽(tīng) < 聽(tīng) 0 聽(tīng) || 聽(tīng)k聽(tīng) > 聽(tīng)n) 聽(tīng)聽(tīng)聽(tīng)聽(tīng) return ; 聽(tīng)聽(tīng)revers_array(a, 0 ,n - 1 ); 聽(tīng)聽(tīng)revers_array(a, 0 ,k); 聽(tīng)聽(tīng)revers_array(a,k + 1 ,n - 1 ); 聽(tīng)聽(tīng) } ]]>
久久精品国产一区二区 |
久久91精品国产91 |
九九久久精品无码专区 |
亚洲国产高清精品线久久
|
久久综合色区 |
一本色道久久88精品综合 |
国产亚洲精品美女久久久 |
日韩电影久久久被窝网 |
久久国产精品久久 |
午夜不卡久久精品无码免费 |
久久精品亚洲男人的天堂 |
久久精品欧美日韩精品 |
久久久噜噜噜久久中文字幕色伊伊 |
久久免费小视频 |
久久精品亚洲日本波多野结衣
|
99久久免费国产精品 |
久久人人爽人人爽人人片AV东京热 |
久久精品国内一区二区三区 |
热re99久久精品国99热 |
九九精品久久久久久噜噜 |
久久亚洲色一区二区三区 |
久久久久综合网久久 |
国产亚洲精品自在久久 |
日韩av无码久久精品免费 |
亚洲国产精品无码久久青草 |
久久久久久一区国产精品 |
欧美777精品久久久久网 |
国产精品美女久久久久 |
久久精品国产亚洲AV香蕉 |
久久久久亚洲精品无码蜜桃 |
国内精品久久久久影院薰衣草 |
久久久噜噜噜久久中文字幕色伊伊 |
夜夜亚洲天天久久 |
久久精品国产一区二区三区 |
久久综合给合综合久久 |
久久最新免费视频 |
久久无码高潮喷水 |
久久九九精品99国产精品 |
国产精品岛国久久久久 |
国产三级精品久久 |
久久国产AVJUST麻豆 |