Skip to content

Commit 920852a

Browse files
authored
Update BoardPath
1 parent 82e2132 commit 920852a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

DynamicProgramming/BoardPath

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
1+
package DynamicProgramming.BoardPath;
2+
/*
3+
* this is an important Algo in which
4+
* we have starting and ending of board and we have to reach
5+
* we have to count no. of ways
6+
* that help to reach end point i.e number by rolling dice
7+
* which have 1 to 6 digits
18

9+
Test Case:
10+
here target is 10
11+
12+
int n=10;
13+
startAlgo();
14+
System.out.println(bpR(0,n));
15+
System.out.println(endAlgo()+"ms");
16+
int[] strg=new int [n+1];
17+
startAlgo();
18+
System.out.println(bpRS(0,n,strg));
19+
System.out.println(endAlgo()+"ms");
20+
startAlgo();
21+
System.out.println(bpIS(0,n,strg));
22+
System.out.println(endAlgo()+"ms");
23+
24+
25+
26+
*/
227
public class BoardPath {
328
public static long startTime;
429
public static long endTime;

0 commit comments

Comments
 (0)