Ths a auto-complete feature that offers by search engines the reason why they such fatser suugestions of your serch as they uses trie that boils down the complexity and takes less time. firstly We added all the existing searchlist in a trie ans in every node i form a list is we store all searches ending with that charchter so when we type anything in search box key up event is fired and we added event listener according to ateget of event we return list of searches.