Bubble sort P15549


Statement
 

pdf   zip   main.cc

thehtml

Write a procedure

void bubble_sort(vector<double>& v);

that sorts v in increasing order using the bubble sort algorithm.

Observation You only need to submit the required procedure; your main program will be ignored.

Information
Author
Jordi Petit
Language
English
Translator
Carlos Molina
Original language
Catalan
Other languages
Catalan
Official solutions
C++
User solutions
C++