Write a program to implement selection sort on an array.
MediumProblem Statement
Write a program to implement selection sort on an array.
Sample Input
int arr[] = {64, 25, 12, 22, 11};Sample Output
Sorted array: 11 12 22 25 64
Limits
Time: 2s · Memory: 256 MB