heyimShivam / Algorithm

C++ algorithm in one place, This is dedicated repository for maintaining data structures and algorithm code. This repository will be helpful for students preparing for internships or campus placements. Topics
10 stars 70 forks source link

trie of all suffix #185

Closed Shaina-08 closed 1 year ago

Shaina-08 commented 1 year ago

Building a Trie of Suffixes 1) Generate all suffixes of given text. 2) Consider all suffixes as individual words and build a trie.