Selection sort P81073


Statement
 

pdf   zip   main.cc   main.py

html

Write a procedure that sorts a vector in increasing order using the selection sort algorithm.

Interface

C++
void selsort (vector<double>& V);
MyPy
selsort (v: list[float]) -> None

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++ Python
User solutions
C++ Python