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) false
I had been asked this question in an interview.
My doubt is from Miscellaneous in chapter Miscellaneous of Data Structures & Algorithms II