摘要: ## 1. 在不重复的有序数组中,查找等于给定值的元素### 循环法```python def search(lst, target): n = len(lst) if n == 0: return -1 low = 0 high = n - 1 while low target: high = mid -1 return -1``` ### 递归法 ```python... 阅读全文
posted @ 2019-04-13 21:11 暮晨 阅读(608) 评论(0) 推荐(0) 编辑

Aaron Swartz was and will always be a hero