1.

Mo’s algorithm can only be used for problems where the query can be calculated from the result of the previous query.(a) true(b) falseI had been asked this question in an interview.My doubt is from Miscellaneous in chapter Miscellaneous of Data Structures & Algorithms II

Answer» RIGHT answer is (a) true

The explanation is: Mo’s ALGORITHM uses the result of the previous query in ORDER to compute the result of the given query. It cannot be implemented where such a SCENARIO is not POSSIBLE.


Discussion

No Comment Found

Related InterviewSolutions