NNetlify·DSAEngineerOnsite – Coding (Practical)
Implement a Simple Static-Site Router
Problem
Given route rules (exact, prefix, wildcard, redirects), match an incoming path to the correct rule with correct precedence.
Example
/blog/* -> blog handler; /old -> 301 /new
Constraints
- Precedence: exact > prefix > wildcard
Approach
Ordered rule matching / trie; relevant to Netlify redirects and edge routing.
added 6 days ago