3 ms·
A hash map doesn't solve the same problem. Given a collection of routes, you need to find the longest one which is a prefix of the given URL.
by teraflop 10y ago
A hash map doesn't solve the same problem. Given a collection of routes, you need to find the longest one which is a prefix of the given URL.