Which of the following is an in-place sorting algorithm?

Lò Ngọc

New member
Which of the following is an in-place sorting algorithm?
A. Merge sort
B. Permutation sort
C. Radix sort
D. Counting sort
 
Answer: b
Explanation: Out of the given algorithms only permutation sort is an in-place sorting algorithm. It is because the permutation sort algorithm does not require any extra space for sorting the input array.
 

Tìm kiếm

Back
Top