Implement a search service that returns the document lines matching the searched words.
Unlock detailed company stats for this questionUpgrade
Example: the document contains "Delhi is the capital of India and has good food" and the search "Delhi has good food" should return that line.
Expect follow-ups like
- What happens when a user deletes some of the lines after a result is returned?
Community answers
No answers contributed by the community yet.
Related questions
Implement search autocomplete: enter(char c) returns the 3 most frequent stored searches matching what has been typed so far, and '#' ends the query and records it.Implement a phrase search in a list of documents.Sentence t is a subsequence of the words of sentence s. Matching t against s from left to right, return the words of s that are left unmatched, in order.Related courses

Course

Course
Course
