06 2020 档案
摘要:智能指针的循环引用 class Node { public: shared_ptr<Node> left; shared_ptr<Node> right; Node(int v) { this->value = v; cout << "Constructor" << endl; } ~Node()
阅读全文
摘要:这次周赛比较惨,只做出了第一个题目。最终排名1700+ 1486. 数组异或操作 第一个题目比较简单,就是去模拟异或的过程即可。 class Solution { public: int xorOperation(int n, int start) { vector<int> nums; for(i
阅读全文