Amazon Software Engineer Phone Interview
Anonymous User
516

Given a list of sentences and a search word. Return the sentences where the word exists

Example -

  1. sentences = ["hello you", "hi you", "hey you - how are you"]

search = "you"

Output = ["hello you", "hi you", "hey you - how are you"]

  1. sentences = ["hello you", "hi you", "hey you - how are you"]

search = "how are you"

Output = ["hey you - how are you"]

Comments (3)