摘要: 1 #include "stdafx.h" 2 #include 3 #include 4 using namespace std; 5 typedef int ElementType; 6 7 8 struct TreeNode; 9 typedef struct TreeNode *Position; 10 typedef struct TreeNo... 阅读全文
posted @ 2017-03-16 23:11 lineaar 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include using namespace std; //是权位数列,B是输出数列,D是原数列,k是范围 void COUNTING_SORT(int A[], int B[],int D[], int k) { int C[10]; for (int i = 0; i = 0; i--) { B[C[A[i] - 1] - 1] = D[... 阅读全文
posted @ 2017-03-16 21:33 lineaar 阅读(132) 评论(0) 推荐(0) 编辑