Which of the following sorting algorithm is only applicable to positive integers?

Alvin Le

Member
Which of the following sorting algorithm is only applicable to positive integers?
A. quick sort
B. heap sort
C. bead sort
D. strand sort
 
Answer: c
Explanation: Bead sort algorithm is only applicable to positive integers. This is because it works by placing number of beads equal to key value, in each row.
 

Tìm kiếm

Back
Top