educative.io

Educative

Shouldn't we be using a trie for this use case?

Shouldn’t we be using a trie for this use case ?


Type your question above this line.

Course: https://www.educative.io/collection/10370001/4938268330688512
Lesson: https://www.educative.io/collection/page/10370001/4938268330688512/6706128006676480

Hi @Prabhat_Jha
No, given the use case in the lesson, hash map performs the task perfectly.