2019年9月18日

算法第二章上机实践报告

摘要: 1.实践题目:7-2 改写二分搜索算法(此题与张雯静同学一起完成) 2.问题描述 3.算法描述 1 int BinarySearch(int a[],int x,int n){ 2 //找到x的下标并返回,否则输出-1 3 int left = 0; int right = n-1; 4 while 阅读全文

posted @ 2019-09-18 00:27 流星雨lxy 阅读(167) 评论(0) 推荐(0) 编辑

导航