You have a file which has user chat message. Fetch the k longest message.
Discuss about how you go with large file and discuss about various file streaming API you would use to efficiently design it.
Round 3:
Given a string like "I lovele etcode" and a dictionary {love, leet, code}. Generate the possible dictionary words that can be formed from the given string . Expected output is {love, leet, code}.