- 博客(4)
- 资源 (6)
- 收藏
- 关注
原创 字符串转位序
#include #include #include #include #define ROW_UNIT 512#define UNIT_LENGTH 500int charindex[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01
2012-03-31 21:44:16 1094
原创 数据结构基础(5)-->二分查找
#include #include #include #include int binary_serch(int *arr, int arr_len, int value){ int l = 0; int h = arr_len - 1; int m; while(l <= h) { m = l + ((h-l)>>1); if(value > arr[m]) {
2012-03-31 13:48:04 673
原创 位序转字符串的一种高效方法
#include #include #include #include #include #define ROW_UNIT 512#define UNIT_LENGTH 500/* 其中ROW_UNIT为使用的位长度,是64的整数倍,但乘积大于UIIT_LENGTH UNIT_LENGTH为需要转换的位长度。 UNIT_LENGTH为需要转换的位长度。也可以是64
2012-03-28 22:01:57 737
原创 有81个选手,9个赛道,要求选出前4名。需要多少场
原题出自:http://topic.csdn.net/u/20120313/10/8feef8d4-6cd6-41a4-8955-a1bf7f9734b8.html问题:有81个选手,9个赛道,要求选出前4名。需要多少场?第一轮将81个选手编成9个组,分别为A、B、C、D、E、F、G、H、I9个组分别在赛场比赛一次,可得名次排序。需要9场。A B C D E F G H
2012-03-17 15:14:24 1305
midnight commander
2012-04-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人