Sorting Algorithms: Selection Sort

Akiko Green
Nerd For Tech
Published in
3 min readFeb 14, 2023

--

image of selection sort

Today we will be discussing Selection Sort! What this algorithm does, is find the smallest element in an unsorted array, and place it at the front . Although, that may sound like it would be a fast way to sort an array, selection sort proves you wrong.

The Pseudocode

  • Write a function called selectionSort that takes an array as an argument.

--

--

Akiko Green
Nerd For Tech

Software Engineer, Novice Blogger, Indoor Climbing Cutie 🥰