摘要:
javascipt---实现二分查找法:<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><script type="text/javascript"> //window.alert(Math.floor(5.7)); //向下取整 输出5 //二分查找法 数组必须是有序的 function binarySeach(arr,findval,leftIndex,rightIndex){ 阅读全文
posted @ 2013-04-10 11:51 Step at a time 阅读(319) 评论(0) 推荐(0)