Selection Sort
Repeatedly finds the minimum element from the unsorted part and puts it at the beginning. Return the sorted array.
Selection Sort

Repeatedly finds the minimum element from the unsorted part and puts it at the beginning. Return the sorted array.

Example 1:
Input: [64,34,25,12,22,11,90]
Output: [11,12,22,25,34,64,90]
Input
arr =[64,34,25,12,22,11,90]
640341252123224115906
Variables
VariableValue
n7
DepthFunction Call
1selectionSort(arr=[7])
0/74