Junior — Senior
Different approaches to sorting a vector
livecode
Task condition
Describe and implement several methods of sorting elements in std::vector: using the std::sort function, using std::sort with a lambda expression, and writing your own sorting algorithm (for example, bubble sort).
std::vector<int> vec;
// std::sort(vec.begin(), vec.end());
// std::sort with lambda
// custom sort (e.g., bubble sort)