
算法
文章平均质量分 76
jjiang06
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
直接查找排序,归并排序,快速排序,计数排序 ,堆排 C++实现
/*insert sort*/ /*时间复杂度 O(n2)*/ #include using namespace std; void insertion(int* a); void main() { int arraya[10]={2,4,6,8,7原创 2011-08-12 05:16:23 · 641 阅读 · 0 评论 -
C++ 用数组实现stack,queue
/*intstack.h*/ #include using namespace std; class Stack { private: int index; int capability; int *arr; public:原创 2011-08-20 08:40:02 · 979 阅读 · 0 评论 -
C++ 实现queue(队列)链表
/*queue.h*/ #ifndef QUEUE_H_ #define QUEUE_H_ typedef struct node1 { int data; node1* next; }node; class Queue { priv原创 2011-09-17 05:34:39 · 1302 阅读 · 0 评论