摘要: https://leetcode.com/problems/lru-cache/ Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following op 阅读全文
posted @ 2016-06-30 23:49 流白 阅读(465) 评论(0) 推荐(0) 编辑
摘要: A binary heap is a heap data struc­ture cre­ated using a binary tree. binary tree has two rules - Imple­men­ta­tion: Use array to store the data. Star 阅读全文
posted @ 2016-06-30 00:09 流白 阅读(540) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/integer-break/ Given a positive integer n, break it into the sum of at least two positive integers and maximize the prod 阅读全文
posted @ 2016-06-30 00:03 流白 阅读(147) 评论(0) 推荐(0) 编辑