Java查找算法

順序查找 從第一個到最後一個紀錄依次與給定值比較,若相等則查找成功web /** * 順序表查找 * 數組下標爲0的位置不用來儲存實際內容 * @author Yongh * */ public class Sequential_Search { /* * 順序查找 */ public int seqSearch(int[] arr,int key) {
相關文章
相關標籤/搜索