Answer to Question #227599 in Python for Amrat

Question #227599
Write an algorithm that will output a maximum of three keyword suggestions after each character is typed by the customer in the search field.

If there are more than three acceptable keywords, return the keywords that are first in alphabetical order, Only return keyword suggestions after the customer has entered two

characters

Keyword suggestions must start with the characters already typed Both the repository and the customerQuery should be compared in a case insensitive way.

Input

The input to the method/function consists of two arguments: repository, a list of unique strings representing the various keywords from the Amazon review comment section; customer Query, a string representing the full search query of the

customer

Output

Retum a list of a list of strings in lower case, where each st represents the keyword suggestions made by the system as the customer types each character of the customerQuery
1
Expert's answer
2021-08-19T04:49:03-0400
Dear Amrat, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS