1.

Sleep sort does not work for ___________(a) negative numbers(b) large numbers(c) small numbers(d) positive numbersThe question was posed to me at a job interview.Question is from Sorting topic in division Sorting of Data Structures & Algorithms II

Answer»

Right choice is (a) negative NUMBERS

Easiest EXPLANATION - Sleep sort algorithm does not WORK for negative numbers. It is because thread cannot sleep for negative amount of TIME.



Discussion

No Comment Found

Related InterviewSolutions