1.

Sleep sort code cannot compile online because ___________(a) it has very high time complexity(b) it has very high space complexity(c) it requires multithreading process(d) online compilers are not efficientThe question was posed to me in unit test.My question is based upon Sorting topic in portion Sorting of Data Structures & Algorithms II

Answer»

The CORRECT answer is (C) it requires multithreading process

The explanation is: Sleep sort requires multithreading process for making the elements to sleep. This process happens in the background at the core of the OS and so cannot be COMPILED on an online compiler.



Discussion

No Comment Found

Related InterviewSolutions