锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲AV无码专区网站,麻豆久久久9性大片,日韩一区二区三区视频久久 http://www.shnenglu.com/ailab/鐢ㄥ績鍘誨仛濂借繖浠朵簨鎯?/description>zh-cn Wed, 07 May 2025 22:38:02 GMT Wed, 07 May 2025 22:38:02 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 ); 聽聽 } ]]>
热99re久久国超精品首页 |
思思久久好好热精品国产 |
精品乱码久久久久久久 |
久久综合精品国产二区无码 |
久久亚洲AV成人无码电影 |
97久久国产亚洲精品超碰热 |
久久精品成人欧美大片 |
性做久久久久久久久 |
精品一区二区久久 |
亚洲伊人久久综合影院 |
久久综合综合久久狠狠狠97色88 |
久久综合狠狠综合久久激情
|
久久精品国产亚洲av麻豆图片
|
久久久无码精品亚洲日韩蜜臀浪潮 |
欧美一区二区精品久久 |
波多野结衣久久一区二区 |
伊人久久免费视频 |
日产精品久久久久久久性色 |
久久这里有精品 |
久久久久国产亚洲AV麻豆 |
国产V亚洲V天堂无码久久久 |
一本一本久久a久久综合精品蜜桃 |
久久线看观看精品香蕉国产 |
婷婷五月深深久久精品 |
亚洲美日韩Av中文字幕无码久久久妻妇
|
久久亚洲国产精品一区二区 |
伊人久久精品无码二区麻豆 |
伊人久久大香线蕉综合5g |
97久久精品人人做人人爽 |
狠狠色婷婷久久一区二区三区
|
日本精品久久久久影院日本 |
久久99精品国产麻豆蜜芽 |
久久精品男人影院 |
久久精品九九亚洲精品天堂
|
色欲久久久天天天综合网 |
四虎影视久久久免费观看 |
久久久久亚洲AV成人网 |
久久综合色之久久综合 |
一本一道久久a久久精品综合
|
99久久成人国产精品免费 |
国产精品欧美久久久天天影视 |