I'm not sure if I get this one. The resulting array should have size len(S1)+len(S2)+len(S3) right? Then can't we just use mergesort on the indexes and then swap integer<->word to create the array?
i.e. what's the catch?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.