Selection Sort in Python | Lecture 31 | #selectionsort |#sorting

preview_player
Показать описание
Hello Friends !
Most Welcome in my IT Channel SPT999.We are Dealing with Data Science, Machine Learning, Python and Full Stack Technology.

in selection sort we have a technique to repeat searching of smallest number in next remaining part of the array. we have to find out smallest number and put it into first place and then search another smallest number in remaining array and then set it into second place so on.
#selection
#sorting
#python
#selectionsort

What is selection sort in python Hindi
Рекомендации по теме
Комментарии
Автор

Sir in the previous video of selection sort, the code was different and easy to understand, that video got deleted I guess,

So sir please tell me if that code was wrong or I can use both the codes in selection sort

This was the code :

n = len(arr)
for i in range(n-1):
for j in range(i+1, n):
if arr[i] > arr[j]:
arr[i], arr[j] = arr[j], arr[i]

vaishnavishelke
Автор

Very well explained, the only video on you tube in hindi to explain selection sort perfectly ! Just Awsm !!

divyanshawasthi