I come, I see, I conquer

                    —Gaius Julius Caesar

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

04 2011 档案

摘要:并查集的C语言实现 阅读全文
posted @ 2011-04-29 23:25 jcsu 阅读(526) 评论(0) 推荐(0) 编辑

摘要:堆排序的C语言实现 阅读全文
posted @ 2011-04-27 00:33 jcsu 阅读(637) 评论(0) 推荐(0) 编辑

摘要:哈希表的C语言实现 阅读全文
posted @ 2011-04-25 23:58 jcsu 阅读(951) 评论(1) 推荐(1) 编辑

摘要:AVL树的C语言实现 阅读全文
posted @ 2011-04-25 01:03 jcsu 阅读(606) 评论(0) 推荐(0) 编辑

摘要:二叉查找树的C语言实现 阅读全文
posted @ 2011-04-24 21:54 jcsu 阅读(741) 评论(0) 推荐(0) 编辑

摘要:/************************************************************************//*/*递归法求数组中的最大数/*/************************************************************************/#defineARRAY_LEN(x)sizeof(x)/sizeof(x[0])#include<stdio.h>intmax(intx[],intn){if(n==1){returnx[0];}else{if(x[n-1]>max(x,n-1)){ 阅读全文
posted @ 2011-04-21 22:20 jcsu 阅读(5146) 评论(0) 推荐(0) 编辑

摘要:/************************************************************************//*/*exampleinput:ABD###CE#F###/*bi-tree built:/*A/*/\/*BC/*///*DE/*\/*F/*/* level traverse: A B C D E F/*/************************************************************************/#include<stdio.h>#include<malloc.h> 阅读全文
posted @ 2011-04-21 01:17 jcsu 阅读(1448) 评论(0) 推荐(0) 编辑

摘要:输入n,用最快的方法求斐波那契数列的第n项 阅读全文
posted @ 2011-04-19 13:20 jcsu 阅读(2668) 评论(1) 推荐(0) 编辑

摘要:1. 输入一个字符串,打印出该字符串中字符的所有排列。例如输入字符串abc,则输出由字符a, b, c所能排列出来的所有字符串abc, acb, bac, bca, cab和cba。2. 有一个由大小写组成的字符串,现在需要对他进行修改,将其中的所有小写字母排在大写字母的前面(大写或小写字母之间不要... 阅读全文
posted @ 2011-04-17 19:13 jcsu 阅读(5396) 评论(0) 推荐(3) 编辑

摘要:#include<stdio.h>/************************************************************************//**//*Recursivedatastructures(structuralrecursion)*//*打印链表(Linkedlists) *//**//************************************************************************/structlist_node{intn;structlist_node*next;};typedef 阅读全文
posted @ 2011-04-17 16:00 jcsu 阅读(213) 评论(0) 推荐(0) 编辑

摘要:最大公约数的递归算法和迭代算法 汉诺塔的递归算法 二叉查找树的递归算法 阅读全文
posted @ 2011-04-17 14:14 jcsu 阅读(304) 评论(0) 推荐(0) 编辑

摘要:#include<stdio.h>//Alignmentrequirements//(typical32bitmachine)//char1byte//shortint2bytes//int4bytes//double8bytes//structureAtypedefstructstructa_tag{charc;shortints;}structa_t;//structureBtypedefstructstructb_tag{shortints;charc;inti;}structb_t;//structureCtypedefstructstructc_tag{charc;dou 阅读全文
posted @ 2011-04-16 21:48 jcsu 阅读(677) 评论(0) 推荐(0) 编辑

摘要:1024!末尾有多少个0? 阅读全文
posted @ 2011-04-16 08:41 jcsu 阅读(619) 评论(0) 推荐(0) 编辑

摘要:线索二叉树的C语言实现 阅读全文
posted @ 2011-04-05 17:28 jcsu 阅读(772) 评论(0) 推荐(0) 编辑

摘要:二叉树非递归遍历的C语言实现 阅读全文
posted @ 2011-04-05 17:04 jcsu 阅读(1749) 评论(0) 推荐(1) 编辑

摘要:二叉树递归遍历的C语言实现 阅读全文
posted @ 2011-04-05 16:31 jcsu 阅读(889) 评论(0) 推荐(0) 编辑

摘要:顺序循环队列的C语言实现 阅读全文
posted @ 2011-04-05 15:19 jcsu 阅读(593) 评论(0) 推荐(0) 编辑

摘要:链队列的C语言实现 阅读全文
posted @ 2011-04-05 15:07 jcsu 阅读(719) 评论(1) 推荐(0) 编辑

摘要:顺序栈的C语言实现 阅读全文
posted @ 2011-04-05 14:47 jcsu 阅读(547) 评论(1) 推荐(0) 编辑

摘要:单链线性表的C语言实现 阅读全文
posted @ 2011-04-05 14:17 jcsu 阅读(873) 评论(0) 推荐(0) 编辑

摘要:顺序线性表的C语言实现 阅读全文
posted @ 2011-04-05 13:44 jcsu 阅读(547) 评论(0) 推荐(1) 编辑