Count Substrings

Solve an easy problem of counting the number of unique substrings in a string using tries.

Problem statement

Given a stringSS, count and return the number of unique substrings of SS.

Example 1

Sample input

Get hands-on with 1200+ tech skills courses.