Question
Why is Base62 commonly used for short URL codes instead of Base64?
A
Because Base62 is URL-friendly and avoids problematic characters like '/' and '+'
B
Because Base62 always provides more combinations than Base64
C
Because Base62 uses only numbers
D
Because Base62 makes database indexing unnecessary
Explanation
Base62 avoids URL-problematic characters like slash and plus.
Base62 uses digits, lowercase letters, and uppercase letters. It avoids characters like '/' and '+', which can cause issues in URLs because slash is a path separator and plus can be interpreted specially in query strings. This makes Base62 compact and URL-friendly.