摘要: Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words h 阅读全文
posted @ 2018-02-04 13:28 逸朵 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 给一个list, 如何把里面的字符分配到尽量少的子list里,并且每个子list没有重复元素。比如['a','b','c','a','a','b'], 可以分成['a', 'b', 'c'], ['a', 'b'], ['a']['a', 'a', 'a', 'b', 'b', 'b'],可以分成[ 阅读全文
posted @ 2018-02-04 13:27 逸朵 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: https://www.evernote.com/shard/s424/sh/2804d7e0-c93c-455d-9b79-027caa1750c5/48c247d32264b0e5739c5fc27c7eaff1 电面, 第一轮 :Leetcode -> Game of life: 不需要in 阅读全文
posted @ 2018-02-04 08:10 逸朵 阅读(3511) 评论(0) 推荐(0) 编辑