锘??xml version="1.0" encoding="utf-8" standalone="yes"?>99精品国产免费久久久久久下载,浪潮AV色综合久久天堂,亚洲国产成人精品91久久久 http://www.shnenglu.com/ailab/鐢ㄥ績鍘誨仛濂借繖浠朵簨鎯?/description>zh-cn Sat, 28 Jun 2025 00:37:26 GMT Sat, 28 Jun 2025 00:37:26 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
聽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
聽
]]> 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
聽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聽
*
list(node聽
*
list1,node聽
*
list2)
{ 聽
if
(list1聽
==
聽
null
聽
||
聽list2聽
==
聽
null
) 聽聽聽
return
聽
null
; 聽
int
聽len1聽
=
聽
0
,len2聽
=
聽
0
; 聽node聽
*
p聽
=
聽list1,
*
q聽
=
聽list2; 聽
while
(p
->
next聽
!=
聽
null
) 聽聽聽
{ 聽聽聽聽聽聽聽聽len1聽
++
; 聽聽聽聽聽聽聽聽p聽
=
聽
->
next; 聽聽聽聽聽聽聽聽}
聽聽
while
(q
->
next聽
!=
聽
null
) 聽聽
{ 聽聽聽聽聽聽len2聽
++
; 聽聽聽聽聽聽q聽
=
聽q
->
next; 聽聽聽聽}
聽聽
if
(p聽
!=
聽q) 聽聽聽聽
return
聽
null
; 聽聽len1聽
++
; 聽聽len2聽
++
; 聽聽p聽
=
聽list1;q聽
=
聽list2; 聽聽
if
(len1聽
>
聽len2聽) 聽聽
{ 聽聽聽聽聽聽聽
int
聽diff聽
=
聽len1聽
-
聽len2; 聽聽聽聽聽聽聽p聽
=
聽list1; 聽聽聽聽聽聽聽
while
(diff聽
>
聽
0
聽
&&
聽p
!=
聽
null
;) 聽聽聽聽聽聽聽聽
{ 聽聽聽聽聽聽聽聽聽p聽
=
聽p
->
next; 聽聽聽聽聽聽聽聽聽diff聽
--
; 聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽}
聽聽
else
聽 聽
{ 聽聽聽聽聽聽聽
int
聽diff聽
=
聽len2聽
-
聽len1; 聽聽聽聽聽聽聽q聽
=
聽list2; 聽聽聽聽聽聽聽
while
(diff聽
>
聽
0
聽
&&
聽q聽
!=
聽
null
) 聽聽聽聽聽聽聽聽
{diff聽
--
;聽q
=
聽q
->
next;}
聽聽}
聽
while
(p聽
!=
聽q) 聽
{ 聽聽聽p聽
=
聽p
->
next;q
=
聽q
->
next; 聽}
聽聽
return
聽p 聽聽聽聽 }
]]>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聽 * reverse_list(node聽 * head) { 聽聽 if (head聽 == 聽 null 聽 || 聽head -> next聽 == 聽 null ) 聽聽聽聽聽聽 return 聽head; 聽聽node聽 * cur聽 = 聽head -> next; 聽聽node聽 * pre聽 = 聽head; 聽聽node聽 * next聽 = 聽 null ; 聽聽 while (cur聽 != 聽 null ) 聽聽 { 聽聽聽聽聽next聽 = 聽cur -> next; 聽聽聽聽聽cur -> next聽 = 聽pre; 聽聽聽聽聽pre聽 = 聽cur;聽聽 聽聽聽聽聽cur聽 = 聽next; 聽聽} 聽聽head-> next聽 = 聽 null ; 聽聽head聽 = 聽pre; 聽聽reurn聽head; } node聽 * reverse_list(node聽 * head) { 聽聽 if (head聽 == 聽 null 聽 || 聽head -> next聽 == 聽 null ) 聽聽聽聽 return 聽head; 聽聽node聽 * cur聽 = 聽head -> next; 聽聽node聽 * next聽 = 聽 null ; 聽聽head -> next聽 = 聽 null ; 聽聽 while (cur聽 != 聽 null ) 聽 { 聽聽聽聽next聽 = 聽cur -> next; 聽聽聽聽cur -> next聽 = 聽head; 聽聽聽聽head聽 = 聽cur; 聽聽聽聽cur聽 = 聽next; 聽} 聽聽return 聽head; 聽聽 } ]]> 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聽
*
merge(node聽
*
head1,node聽
*
head2)
{ 聽聽
if
(head1聽
==
聽
null
) 聽聽聽聽聽
return
聽head2; 聽聽
if
(head2聽
==
聽
null
) 聽聽聽聽聽
return
聽head1; 聽聽reverse_list(
&
head2); 聽聽node聽
*
head3聽
=
聽
null
,
*
cur聽
=
聽
null
; 聽聽node聽
*
p聽
=
聽head1,
*
q聽
=
聽head2; 聽聽
while
(p聽
!=
聽
null
聽
&&
聽q聽
!=
聽
null
) 聽聽
{ 聽聽聽聽
if
(p
->
value聽
<
聽q
->
value) 聽聽聽聽
{ 聽聽聽聽聽聽聽
if
(head3聽
==
聽
null
) 聽聽聽聽聽聽聽聽
{ 聽聽聽聽聽聽聽聽聽聽聽head3聽
=
聽p; 聽聽聽聽聽聽聽聽聽聽聽cur聽
=
聽p; 聽聽聽聽聽聽聽聽聽聽聽p聽
=
聽p
->
next; 聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
else
聽聽聽聽聽聽聽聽
{ 聽聽聽聽聽聽聽聽聽聽cur
->
next聽
=
聽p; 聽聽聽聽聽聽聽聽聽聽cur聽
=
聽p; 聽聽聽聽聽聽聽聽聽聽p聽
=
聽p
->
next; 聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽}
聽聽聽聽聽
else
聽聽聽聽聽聽
{ 聽聽聽聽聽聽聽聽聽聽聽
if
(head3聽
==
聽
null
) 聽聽聽聽聽聽聽聽聽聽聽
{ 聽聽聽聽聽聽聽聽聽聽聽聽聽head3聽
=
聽q; 聽聽聽聽聽聽聽聽聽聽聽聽聽cur聽
=
聽q; 聽聽聽聽聽聽聽聽聽聽聽聽聽q聽
=
聽q
->
next; 聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽
else
聽聽聽聽聽聽聽聽聽聽聽聽聽
{ 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cur
->
next聽
=
聽q; 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽cur聽
=
聽q; 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽q
=
q
->
next; 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽}
聽聽聽}
聽聽聽
if
(p聽
==
聽
null
) 聽聽聽聽聽聽cur
->
next聽
=
聽q; 聽聽聽
if
(q聽
==
聽
null
) 聽聽聽聽聽聽cur
->
next聽
=
聽p; 聽聽聽
return
聽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 聽 * strstr( const 聽 char 聽 * str, const 聽 char 聽 * sub) { 聽聽 if (str聽 == 聽 null 聽 || 聽sub聽 == 聽 null ) 聽聽聽聽 return 聽 null ; 聽聽 const 聽 char 聽 * p聽 = 聽str; 聽聽 const 聽 char 聽 * q聽 = 聽sub; 聽聽 while ( * str聽 != 聽 ' \0 ' 聽 && 聽 * sub聽 != 聽 ' \0 ' ) 聽聽 { 聽聽聽聽聽 if ( * str ++ 聽 != 聽 * sub ++ ) 聽聽聽聽聽聽 { 聽聽聽聽聽聽聽聽聽聽str聽 = 聽 ++ p; 聽聽聽聽聽聽聽聽聽聽sub聽 = 聽q; 聽聽聽聽聽聽聽聽} 聽聽聽} 聽聽if ( * sub聽 == 聽 ' \0 ' ) 聽聽聽聽 return 聽p; 聽聽 else 聽聽聽聽return 聽 null ; } char 聽 * strstr( const 聽 char 聽 * str, const 聽 char 聽 * sub) { 聽聽 if (str聽 == 聽 null 聽 || 聽sub聽 == 聽 null ) 聽聽聽聽 return 聽 null ; 聽聽 const 聽 char 聽 * p聽 = 聽str; 聽聽 const 聽 char 聽 * q聽 = 聽sub; 聽聽 for (; * str聽 != 聽 ' \0 ' 聽;str ++ ) 聽聽 { 聽聽聽聽 if ( * str聽 != 聽 * sub) 聽聽聽聽聽聽 continue ; 聽聽聽聽p聽 = 聽str; 聽聽聽聽 while ( 1 ) 聽聽聽聽 { 聽聽聽聽聽聽聽聽 if ( * sub聽 == 聽 ' \0 ' ) 聽聽聽聽聽聽聽聽聽聽聽 return 聽str; 聽聽聽聽聽聽聽聽 if ( * p ++ 聽 != 聽 * sub ++ ) 聽聽聽聽聽聽聽聽聽聽聽 break ; 聽聽聽聽聽聽聽聽聽 聽聽聽聽聽聽} 聽 聽聽聽聽聽sub聽 = 聽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)錛屼笖鐢ㄥ埌鐨勮緟鍔╃┖闂翠負O(1)銆?br /> in fact,the essence of above question is "revers two times" (a'b')' = ba;void 聽reverse( int 聽 * a, int 聽n, int 聽k) { 聽聽 if (a聽 == 聽 null 聽 || 聽n聽 < 聽 0 聽 || 聽k聽 > 聽n) 聽聽聽聽 return ; 聽聽revers_array(a, 0 ,n - 1 ); 聽聽revers_array(a, 0 ,k); 聽聽revers_array(a,k + 1 ,n - 1 ); 聽聽 } ]]>
亚洲欧美成人久久综合中文网 |
久久国内免费视频 |
久久久中文字幕 |
国产成人香蕉久久久久 |
久久综合给合综合久久 |
亚洲国产精品一区二区久久hs |
99久久无色码中文字幕 |
日本欧美国产精品第一页久久 |
久久天天躁狠狠躁夜夜avapp |
久久九九有精品国产23百花影院 |
久久精品国产精品亚洲下载 |
色欲综合久久躁天天躁蜜桃 |
国产精品成人99久久久久
|
色综合久久88色综合天天 |
精品国产婷婷久久久 |
亚洲国产精品无码成人片久久 |
欧美亚洲另类久久综合 |
色婷婷综合久久久中文字幕 |
久久996热精品xxxx |
a级成人毛片久久 |
日产久久强奸免费的看 |
久久精品国产91久久麻豆自制
|
77777亚洲午夜久久多喷 |
一级女性全黄久久生活片免费
|
欧美午夜A∨大片久久 |
久久婷婷久久一区二区三区 |
香蕉久久夜色精品升级完成 |
国产精品午夜久久 |
97久久精品人人做人人爽 |
99999久久久久久亚洲 |
久久天天躁狠狠躁夜夜网站 |
7777精品伊人久久久大香线蕉 |
segui久久国产精品 |
狠狠色伊人久久精品综合网 |
久久国产精品-久久精品 |
国内精品久久久久影院优 |
久久精品aⅴ无码中文字字幕不卡 |
久久AV高潮AV无码AV |
一本一本久久A久久综合精品 |
亚洲综合日韩久久成人AV |
伊人久久精品无码av一区 |