摘要: Majority Element Find majority element; Input:An array A[1 to n] of elements; Output:The majority element if it exists;otherwise none; 1、Majority Elem 阅读全文
posted @ 2017-10-08 14:20 Teddykin 阅读(400) 评论(0) 推荐(0)
摘要: def binary_search(data,y,low=0,high=None): high = high if high is not None else len(data) while(low <= high): mid = (low+high)//2 if y==data[mid]: res 阅读全文
posted @ 2017-09-25 18:56 Teddykin 阅读(124) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-09-09 00:09 Teddykin 阅读(98) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-09-06 22:47 Teddykin 阅读(90) 评论(0) 推荐(0)
摘要: 今天开通了博客 看Python的视频里老师说从开始就要养成写bolg和github的习惯 他说他当时去汽车之家就没带简历~ 哈哈 光是博客就收了他 那我今年大三了对编程能力还不是很强。学的智能科学与技术。 之后每次做完一个小作业 都会记录再博客上,渐渐的发现我也可以做一名有趣的程序员 让编程改变世界 阅读全文
posted @ 2017-09-05 22:58 Teddykin 阅读(84) 评论(0) 推荐(0)