Fix package declarations (#2576)

This commit is contained in:
Aitor Fidalgo Sánchez
2021-10-16 16:43:51 +03:00
committed by GitHub
parent 60a0c23544
commit 2b7a977cc8
42 changed files with 68 additions and 55 deletions

View File

@ -1,3 +1,5 @@
package DynamicProgramming;
// Given N dice each with M faces, numbered from 1 to M, find the number of ways to get sum X.
// X is the summation of values on each face when all the dice are thrown.
@ -14,9 +16,6 @@ Following is implementation of Dynamic Programming approach. */
// Code ---->
// Java program to find number of ways to get sum 'x' with 'n'
// dice where every dice has 'm' faces
import java.util.*;
import java.lang.*;
import java.io.*;
class DP {
/* The main function that returns the number of ways to get sum 'x' with 'n' dice and 'm' with m faces. */