Help me to get this question's answer?? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Help me to get this question's answer??

Do selection sort uses Greedy approach or divide and conquer?? And why. Googling made me confused, anyone is saying this and someone that, so it might getting confused

9th Apr 2021, 7:21 AM
Coderninja
2 ответов
0
It's greedy as on each iteration we're making selection of lesser element. Can't be divide and conquer as we're not splitting the array. But constructing array in parts.
10th Apr 2021, 10:14 PM
patilkrunal
patilkrunal - avatar