摘要:
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... 阅读全文
摘要:
#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[... 阅读全文