yearkey-cy
Results
2
comments of
yearkey-cy
## 295. 数据流的中位数 题解代码为Cpp ``` class MedianFinder { public: /** initialize your data structure here. */ MedianFinder() { } void addNum(int num) { if (big_queue.empty()) { big_queue.push(num); return; } if...
## 376. 摆动序列 题解代码为Cpp ```cpp class Solution { public: int wiggleMaxLength(vector& nums) { if (nums.size() < 2) return nums.size(); static const int STATE_BEGIN = 0; static const int STATE_UP =...