Problem 1804 · Medium

Implement Trie II (Prefix Tree)

Support repeated word insertion, exact and prefix counts, and single-occurrence erasure.

Open the interactive visualisation