1.

There are n dice with f faces. The faces are numbered from 1 to f. What is the maximum possible sum that can be obtained when the n dice are rolled together?(a) 1(b) f*f(c) n*n(d) n*fThe question was asked in a national level competition.This key question is from Dice Throw Problem in division Dynamic Programming of Data Structures & Algorithms II

Answer» RIGHT OPTION is (d) N*f

Explanation: The sum will be maximum when all the faces SHOW a value f. The sum in this CASE will be n*f.


Discussion

No Comment Found

Related InterviewSolutions