Algorithm · Amazon · Medium
Keyword Search Easy · Topics · Company Tags · Hints You are provided with a list of n strings (keywords) and a single search term query. Write a program that checks whether query is present in the keyword list exactly as it appears, and prints true if it is found, or false if it is not. Input format First line: integer n, the number of keywords. Next n lines: one keyword per line. Final line: the string query. Output format Print true if query equals any of the keywords;…
Checking your access…