摘要:
题目 自己写的 class Solution { public: int pivotIndex(vector<int>& nums) { int n = nums.size(); vector<int> s(n, 0); s[0] = nums[0]; for (int i = 1; i != n; 阅读全文
摘要:
题目 自己写的老拉了 class Solution { public: void rotate(vector<int>& nums, int k) { const int n = nums.size(); int ans[100010] = {}; for (int i = 0; i < n; ++ 阅读全文