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
阅读全文
摘要:A binary heap is a heap data structure created using a binary tree. binary tree has two rules - Implementation: Use array to store the data. Star
阅读全文
摘要: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
阅读全文
摘要:https://leetcode.com/problems/data-stream-as-disjoint-intervals/ Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize th
阅读全文
摘要:https://leetcode.com/problems/remove-duplicate-letters/ Given a string which contains only lowercase letters, remove duplicate letters so that every l
阅读全文
摘要: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
阅读全文
摘要:https://leetcode.com/problems/design-twitter/ Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号