Question d’entretien chez Amazon

Top k frequent words Preorder using stack in tree

Réponse à la question d'entretien

Utilisateur anonyme

4 nov. 2023

Told them the correct solution in the first one. And in 2nd one told them the solution using recursion, tried solving it with stack ,was very close to the correct one but was able to give the idea what i was thinking.