/**
* Simple
*
* Time Complexity: O(n)
* Implementation 1
*/
#include <bits/stdc++.h>
#include "reverse.h"
std::vector<long long> reverse(std::vector<long long> a) {
std::reverse(a.begin(), a.end());
return a;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
308 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
0 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
468 KB |
Output is correct |
8 |
Correct |
5 ms |
832 KB |
Output is correct |
9 |
Correct |
10 ms |
2096 KB |
Output is correct |
10 |
Correct |
30 ms |
5808 KB |
Output is correct |