1.

In which of the following case pigeonhole sort is most efficient?

A. when range of input is less than number of elements
B. when range of input is more than number of elements
C. when range of input is comparable to the number of elements
D. when the given array is almost sorted
Answer» D. when the given array is almost sorted


Discussion

No Comment Found