有序表查找优化算法

#include <stdio.h>
#include <stdlib.h>

int Swquential_Search(int *a, int n, int key)
{
	int i;
	a[0] = key;
	i = n;

	while(a[i] != key)
	{
		i--;
	}

	return i;
}


原文地址:https://www.cnblogs.com/javawebsoa/p/3047855.html