Learn Selection Sort in 8 minutes

10 Views
Published
data structures and algorithms selection sort algorithm

#selection #sort #algorithm

// selection sort = search through an array and keep track of the minimum value during
// each iteration. At the end of each iteration, we swap variables.

// Quadratic time O(n^2)
// small data set = okay
// large data set = BAD

music credits
Category
Bro Code
Tags
algorithm, interview, C++
Be the first to comment