Python program for implementation of Selection Sort














































Python program for implementation of Selection Sort



# Python program for implementation of Selection Sort import sys Arr = [64, 25, 12, 22, 11,26,65,14,10,9,5,1] for i in range(len(Arr)): # Find the minimum no in remaining min_no= i for j in range(i+1, len(Arr)): if Arr[min_no] > Arr[j]: min_no = j Arr[i], Arr[min_no] = Arr[min_no], Arr[i] print ("Sorted array") for i in range(len(Arr)): print(Arr[i], end=",")

More Articles of Ravi Dhamne:

Name Views Likes
Python program for implementation of Selection Sort 166 19

Comments