随笔分类 - leetcode
摘要:https://leetcode.com/problems/design-twitter/ class Twitter { unordered_map > follower_mp; unordered_map > followee_mp; unordered_map > > twitter_self_mp; int timestamp; public: ...
阅读全文
摘要:https://leetcode.com/problems/russian-doll-envelopes/ // Use map (Russian doll number -> vector of envelopes) to record results // For each envelope, check above map, and when fitting envelope which...
阅读全文
摘要:https://leetcode.com/problems/data-stream-as-disjoint-intervals/
阅读全文
摘要:https://leetcode.com/problems/intersection-of-two-arrays-ii/
阅读全文
摘要:https://leetcode.com/problems/top-k-frequent-elements/
阅读全文
摘要:https://leetcode.com/problems/3sum-closest/ // At first, my DP solution exceeds time limitation// Then with the hint fo the discussion board,// I have
阅读全文