06 2016 档案

摘要: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 流白 阅读(478) 评论(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 流白 阅读(566) 评论(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 流白 阅读(156) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/data-stream-as-disjoint-intervals/ Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize th 阅读全文
posted @ 2016-06-29 21:26 流白 阅读(168) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/remove-duplicate-letters/ Given a string which contains only lowercase letters, remove duplicate letters so that every l 阅读全文
posted @ 2016-06-29 09:21 流白 阅读(224) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/russian-doll-envelopes/ You have a number of envelopes with widths and heights given as a pair of integers (w, h). One e 阅读全文
posted @ 2016-06-29 05:45 流白 阅读(393) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/design-twitter/ Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is 阅读全文
posted @ 2016-06-29 01:09 流白 阅读(346) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/count-of-range-sum/ Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive. R 阅读全文
posted @ 2016-06-29 01:02 流白 阅读(218) 评论(0) 推荐(0)