Path Prefix Router
TikTok interview questions · Medium · Coding round · 6 tests
Store routes by path segment so lookups can walk the trie and remember the deepest node that owns an origin.
The full question, tests and reference solution are available with a plan that includes TikTok.
Run your code with Ctrl+Enter to see results.