二分搜索技术算法

import java.util.Scanner;
public class 二分搜索技术 {

		/*
		 * 冒泡排序
		 * 
		 * args 待排序的数组
		 * 
		 * 排好的数组
		 */
		public static int[] bubble(int[] args)
		{
			for(int i=1;i a[m])
					{
						f = m+1;
					}
					else
					{
						l = m-1;
					}
				}
				
				if(f > l)
				{
					System.out.println("没找到");
					break;
				}
			}
		}

}

你可能感兴趣的:(二分搜索技术算法)