Why is a counter plus base62 encoding a common interview answer for short-code generation?
Practice this question from Quiz: Design a URL Shortener, with options and an explanation.
Question
Why is a counter plus base62 encoding a common interview answer for short-code generation?
Option A — Correct answer
It guarantees uniqueness if the ID source is reliable
Option B
It removes the need for a database
Option C
It automatically encrypts URLs
Option D
It makes analytics unnecessary