0

May you explain how 'selection-short' works?

1st Jul 2021, 10:27 AM
FARIZI FATTAH
FARIZI FATTAH - avatar
2 Answers
+ 1
It checks for the shortest number in the array and swap it with the first element and subsequently it goes on
1st Jul 2021, 11:04 AM
Atul [Inactive]
+ 1
this Explains with an example : https://www.sololearn.com/learn/658/?ref=app Hope it helps..
1st Jul 2021, 12:24 PM
Jayakrishna 🇼🇳