Algorithm editor

Trie · prefix lookup

Expected O(L) lookup · O(k) copy

Choose an input and visualize.