Selection sort gif uses animations to explain selection sort, which repeatedly finds the minimum element from the unsorted part and puts it at the beginning.

selection sort gif

Table of Content


What is selection sort?

Selection sort repeatedly finds the minimum element from the unsorted part and puts it at the beginning. The time complexity is O(n 2) time.


Selection sort gif

selection sort gif


Selection sort code

Java

Javascript

Python

Doodle

selection sort doodle


Free download

Download Java, JavaScript and Python code
Algorithm types and algorithm examples