OpenGenus / cosmos

World's largest Contributor driven code dataset | Used in Quark Search Engine, @OpenGenus IQ, OpenGenus Visual Project

Home Page:http://internship.opengenus.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dice Role Simulation (DP Problem)

Jahnvi13 opened this issue · comments

This is a(n):

  • New algorithm
  • Update to an existing algorithm
  • Error
  • Proposal to the Repository

Details:
We have a random dice number generator with constraints like the ith number can be generated only j times. We need to find the number of distinct sequences which can be generated. The algorithm can be generalized to numbers beyond 6 as well.
Can I work on it in C++?

Sure, you may work on it in C++.