New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Atlassian
Coding Question
AI Insights
Quick Summary
Design a routing system that maps URL patterns to handler functions using exact segments and a single-segment wildcard.
Return the handler for the most specific match, prioritizing patterns with fewer wildcards.
Support dynamic registration and efficient querying under moderate call volumes.
What This Tests
Hierarchical data structure implementation
Pattern matching with constrained wildcards
Priority-based result selection during traversal
String segmentation and state tracking
Common Patterns
Trie
DFS/BFS
Hashing
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected