Sobes.tech
Junior — Senior

Write an array sorting using bubble sort method

livecode

Task condition

Implement a bubble sort algorithm that will order the elements of the given vector of integers.

std::vector<int> data = {1, -5, 4, 1, 10, 1, -33, 300};
// sort using bubble sort