Question d’entretien chez Meta

Given a list of words, make a function to setup multiple list inputs and streamline this process. In a separate function, given a user entered word, check the stored lists for this word. If there are any periods "." in the user given word, it acts as a universal character. (ex, b.t = bat, but, bot, ect).

Réponses aux questions d'entretien

Utilisateur anonyme

19 févr. 2018

I created a queue to store the predetermined lists. I let these lists be vectors and did a nested for loop to compare the individual words with the given string while doing a true/false check for a period in the word.

Utilisateur anonyme

26 févr. 2018

Use Trie Tree