- 博客(3)
- 资源 (4)
- 收藏
- 关注
原创 Maximum sum
DescriptionGiven a set of n integers: A={a1, a2,…, an}, we define a function d(A) as below:Your task is to calculate d(A).InputThe input consists of T(<=30) test cases. The number of test cases (T) is
2017-10-23 22:13:42 283
原创 [leetcode] 146. LRU Cache
https://leetcode.com/problems/lru-cache/description/class LRUCache {private: int _capacity; list<pair<int, int> > _list; unordered_map<int, list<pair<int, int> >::iterator> _map;public:
2017-10-23 18:03:13 199
原创 [leetcode] 295. Find Median from Data Stream
https://leetcode.com/problems/find-median-from-data-stream/solution/class MedianFinder { priority_queue<int> lo; // max heap priority_queue<int, vector<int>, great
2017-10-23 11:26:13 393
sbt ~/ivay2/cache
2018-10-17
深入理解计算机系统(第二版)-家庭作业答案
2016-05-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人