Last Updated :
14 Nov, 2018
Consider the following sorting algorithms:
Bubble sort, merge sort, insertion sort,
quick sort, selection sort and heap sort
Which of the following statement(s) is/are correct regarding inplace sorting algorithms?
(A) Bubble sort, selection sort, merge sort and heap sort
(B) Selection sort, quick sort, and heap sort
(C) Bubble sort, insertion sort, heap sort, and selection sort
(D) Both (B) and (C)
Answer: (D)
Explanation: In given sorting algorithms: Bubble sort, merge sort, insertion sort, quick sort, selection sort and heap sortm.
All are In-place sorting algorithms except merge sort which is out-place.
So, option (D) is correct.
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...