PTA 6-13 折半查找
摘要:
解题的关键是理解题目定义的线性表,这个表下标是从1开始的,所以折半查找的low和high也必须从1和length开始 #include <iostream> using namespace std; #define MAXSIZE 50 typedef int KeyType; typedef st 阅读全文
posted @ 2021-01-14 22:51 letwant 阅读(223) 评论(0) 推荐(0) 编辑