14. 二分查找
摘要:
题目 给定一个排序的整数数组(升序)和一个要查找的整数target,用O(logn)的时间查找到target第一次出现的下标(从0开始),如果target不存在于数组中,返回-1。 题目 给定一个排序的整数数组(升序)和一个要查找的整数target,用O(logn)的时间查找到target第一次出现 阅读全文
posted @ 2018-03-20 21:23 usp10 阅读(116) 评论(0) 推荐(0)
posted @ 2018-03-20 21:23 usp10 阅读(116) 评论(0) 推荐(0)
posted @ 2018-03-20 20:07 usp10 阅读(153) 评论(0) 推荐(0)
posted @ 2018-03-20 20:00 usp10 阅读(106) 评论(0) 推荐(0)
posted @ 2018-03-20 19:55 usp10 阅读(141) 评论(0) 推荐(0)
posted @ 2018-03-20 19:19 usp10 阅读(110) 评论(0) 推荐(0)
posted @ 2018-03-20 19:11 usp10 阅读(287) 评论(0) 推荐(0)