摘要: 166 Fraction to Recurring Decimal这道题就是不停的去check做除法的余数是否重复出现了class Solution: # @param {integer} numerator # @param {integer} denominator # @re... 阅读全文
posted @ 2015-08-07 14:00 dapanshe 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 220 Contains Duplicate III这道题用dic来记录上一次桶区间内的下标,唯一的trick是比较周边的一共三个桶class Solution: # @param {integer[]} nums # @param {integer} k # @param {in... 阅读全文
posted @ 2015-08-07 02:46 dapanshe 阅读(129) 评论(0) 推荐(0) 编辑