Selection sort

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.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:52:38.733Z

© Jutge.org, 2006–2026.
https://jutge.org