Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <vector>
#include <algorithm>
int main() {
std::vector<int> nums = {5, 2, 9, 1, 3};
std::sort(nums.begin(), nums.end(), [](int a, int b) { return a < b; });
for (int n : nums) std::cout << n << ' ';
return 0;
}Coding works best on desktop or with an external keyboard.