Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Latest commit

 

History

History
executable file
·
22 lines (9 loc) · 385 Bytes

Selection_Sort.md

File metadata and controls

executable file
·
22 lines (9 loc) · 385 Bytes

Selection Sort

Problem Statement

Write a function that takes in an array of integers and returns a sorted version of that array. Use the Selection Sort algorithm to sort the array.

Sample input: [8, 5, 2, 9, 5, 6, 3]

Sample output: [2, 3, 5, 5, 6, 8, 9]

Explanation

We can use a Stack here

Solution

Check this Python code.