锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产欧美一区二区三区在线看蜜臀,日韩午夜在线电影,欧美日韩国产精品专区 http://www.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://www.shnenglu.com/ailab/archive/2006/11/21/15523.htmlailab ailab Tue, 21 Nov 2006 14:11:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/21/15523.html http://www.shnenglu.com/ailab/comments/15523.html http://www.shnenglu.com/ailab/archive/2006/11/21/15523.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15523.html http://www.shnenglu.com/ailab/services/trackbacks/15523.html ]]>tree algorithm http://www.shnenglu.com/ailab/archive/2006/11/21/15522.htmlailab ailab Tue, 21 Nov 2006 14:11:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/21/15522.html http://www.shnenglu.com/ailab/comments/15522.html http://www.shnenglu.com/ailab/archive/2006/11/21/15522.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15522.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/21/15521.htmlailab ailab Tue, 21 Nov 2006 14:11:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/21/15521.html http://www.shnenglu.com/ailab/comments/15521.html http://www.shnenglu.com/ailab/archive/2006/11/21/15521.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15521.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/21/15520.htmlailab ailab Tue, 21 Nov 2006 14:09:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/21/15520.html http://www.shnenglu.com/ailab/comments/15520.html http://www.shnenglu.com/ailab/archive/2006/11/21/15520.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15520.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/21/15517.htmlailab ailab Tue, 21 Nov 2006 13:58:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/21/15517.html http://www.shnenglu.com/ailab/comments/15517.html http://www.shnenglu.com/ailab/archive/2006/11/21/15517.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15517.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/20/15482.htmlailab ailab Mon, 20 Nov 2006 15:32:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/20/15482.html http://www.shnenglu.com/ailab/comments/15482.html http://www.shnenglu.com/ailab/archive/2006/11/20/15482.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15482.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/20/15481.htmlailab ailab Mon, 20 Nov 2006 14:11:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/20/15481.html http://www.shnenglu.com/ailab/comments/15481.html http://www.shnenglu.com/ailab/archive/2006/11/20/15481.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15481.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/20/15480.htmlailab ailab Mon, 20 Nov 2006 14:04:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/20/15480.html http://www.shnenglu.com/ailab/comments/15480.html http://www.shnenglu.com/ailab/archive/2006/11/20/15480.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15480.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/20/15478.htmlailab ailab Mon, 20 Nov 2006 13:50:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/20/15478.html http://www.shnenglu.com/ailab/comments/15478.html http://www.shnenglu.com/ailab/archive/2006/11/20/15478.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15478.html http://www.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://www.shnenglu.com/ailab/archive/2006/11/20/15474.htmlailab ailab Mon, 20 Nov 2006 13:20:00 GMT http://www.shnenglu.com/ailab/archive/2006/11/20/15474.html http://www.shnenglu.com/ailab/comments/15474.html http://www.shnenglu.com/ailab/archive/2006/11/20/15474.html#Feedback 0 http://www.shnenglu.com/ailab/comments/commentRss/15474.html http://www.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) } ]]>
人人狠狠综合久久亚洲婷婷 |
www.久久热 |
久久亚洲精品无码aⅴ大香 |
久久国产欧美日韩精品 |
欧美久久精品一级c片片 |
色天使久久综合网天天 |
国产精品18久久久久久vr |
亚洲欧美一区二区三区久久 |
久久亚洲高清观看 |
久久亚洲AV成人出白浆无码国产 |
久久93精品国产91久久综合 |
欧美黑人激情性久久 |
人人狠狠综合88综合久久 |
2020最新久久久视精品爱 |
久久久久人妻一区二区三区 |
蜜桃麻豆www久久国产精品 |
久久99国产精品久久99果冻传媒 |
久久国产欧美日韩精品免费 |
品成人欧美大片久久国产欧美...
品成人欧美大片久久国产欧美
|
武侠古典久久婷婷狼人伊人 |
久久精品无码专区免费青青 |
一本大道久久东京热无码AV |
久久久久久亚洲精品无码 |
国产精品久久免费 |
久久亚洲私人国产精品vA |
色青青草原桃花久久综合 |
香蕉久久影院 |
2021国内久久精品 |
亚洲午夜精品久久久久久浪潮 |
国产L精品国产亚洲区久久 |
成人久久综合网 |
日韩AV无码久久一区二区 |
久久久久九九精品影院 |
欧美一级久久久久久久大片 |
国产精品久久久久久久人人看 |
欧美黑人激情性久久 |
亚洲精品国产美女久久久 |
国产婷婷成人久久Av免费高清
|
久久久久久精品免费免费自慰 |
久久综合久久综合亚洲 |
国产69精品久久久久观看软件 |