← Amazon questions

Form M digit number with digit constraints

Filed under Amazon

Given base `N` and length `M`, count the number of valid `M`-digit numbers in base `N` (digits from `0` to `N-1`) such that the first digit is non-zero, and each subsequent digit is at least twice the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.