GATE | GATE CS Mock 2018 | Question 54
Consider the below Program and identify the problem:
(start_index >= end_index)
min_index = minIndex(arr, start_index, end_index);
fun2(arr, start_index + 1, end_index);
Selection Sort Recursive implementation
Bubble sort Recursive implementation
Finding Pair Recursive implementation
None of these
The function fun2() is a recursive implementation of Selection Sort.
Hence Option(A) is the correct answer.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Level Up Your GATE Prep!
Embark on a transformative journey towards GATE success by choosing Data Science & AI
as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need.