Multiple ChoiceBeginner 45s
URL shortener key generation
For a URL shortener generating short codes, why is a global monotonically increasing counter encoded in base62 often preferred over random hashing?
Options
- 1It makes the URLs guessable, which is required so that clients can reliably predict the next generated code
- 2It stores the full original URL inside the short code so that no database lookup is needed on redirect
- 3It produces shorter, collision-free codes deterministically and avoids collision checks
- 4It removes the need for a database entirely because the short code itself encodes the destination address
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.