8 lines
172 B
C++

#include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
void rotate(vector<int> &nums, int k);
bool test(vector<int> &nums, int k, vector<int> &answer);
};