โ† VMware questions

Count R-digit numbers with digit sum equal to S

Filed under VMware

Given two integers R (number of digits) and S (target digit sum), find the total number of R-digit numbers whose digits sum up to S. The first digit of an R-digit number cannot be 0.

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

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