C语言 实现 折半查找 递归和 非递归 方式

首先建立随机数组算法 /* * 不重复 */ void getUniq(int s[], int i) { s[i] = rand() % 100; int j = 0; while (j < i) { if (s[j] == s[i]) { getUniq(s, i); } j++; } } int *create_array(int size) { int *s;
相关文章
相关标签/搜索