11 2021 档案

摘要:// 121.买卖股票的最佳时机 int maxProfit(vector<int>& prices) { int maiRu = INT32_MAX; // 买入 int maiCh = INT32_MIN; // 卖出 for (int x:prices) { maiRu = min(maiRu 阅读全文
posted @ 2021-11-10 11:03 州长在手 阅读(35) 评论(0) 推荐(0)
摘要:class MyCircularDeque { public: std::vector<int> q; const vector<int> & getV() const { return q; } } int main() { MyCircularDeque mcd(10); const std:: 阅读全文
posted @ 2021-11-04 15:35 州长在手 阅读(51) 评论(0) 推荐(0)