蚂蚁不在线

2018年8月12日

leetcode python 033 旋转数组查找

摘要: ## 假设升序,import randomdef find(y): l,m=len(y),0 while l>1: n=int(l/2) if y[0]<y[n]: y=y[n:] else: y=y[:n] m+=l-n l=len(y) return mstop=1000x=[x for x i 阅读全文

posted @ 2018-08-12 14:12 蚂蚁不在线 阅读(373) 评论(0) 推荐(0) 编辑

导航