Question d’entretien chez Imperva

Write a function that prints common chars from 2 strings in run time N

Réponse à la question d'entretien

Utilisateur anonyme

16 sept. 2020

iterate over the 1st string, inserting each char into a dictionary, then iterate over the 2nd string and print every char that's already in the dictionary.