上一页 1 ··· 5 6 7 8 9
摘要: #136. Single Numberclass Solution(object): def singleNumber(self, nums): """ :type nums: List[int] :rtype: int """ single=[] for i in range(len(nums)) 阅读全文
posted @ 2018-06-28 02:23 ffeng0312 阅读(131) 评论(0) 推荐(0)
摘要: class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: int """ n=len(nums) a=n/3 freq={} result=[] for i in nums: 阅读全文
posted @ 2018-06-26 06:01 ffeng0312 阅读(102) 评论(0) 推荐(0)
摘要: class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: int """ n=len(nums) a=n/2 if n>=2: freq={} for i in nums: i 阅读全文
posted @ 2018-06-26 05:56 ffeng0312 阅读(153) 评论(0) 推荐(0)
摘要: 一亩三分地数据科学课程 http://www.1point3acres.com/ds-courses/1-analytics/ 阅读全文
posted @ 2018-06-26 05:55 ffeng0312 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9