โ† Microsoft questions

Dice Throw DP Problem

Filed under Microsoft

Given n dice each with k faces, numbered from 1 to k, find the number of ways to get sum X using all n dice.

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 Microsoft questions

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