Data Structures & Algorithms using JavaScript Course
Data Structures & Algorithms using JavaScript
/
Beginner

Selection Sort

Definition

An in-place comparison sorting algorithm that divides the input into a sorted and an unsorted region. It repeatedly selects the smallest element from the unsorted region and moves it to the sorted region. O(N^2).

Explain Like I'm New

Scanning the entire crowd for the absolute shortest person, bringing them to the front, then scanning everyone else for the next shortest person.

Interactive Coding Challenges

Identify the core logic required to implement Selection Sort.

Solution Code

Loading...
Console output will appear here...