File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
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
1
8
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
+ */
2
27
public class BoardPath {
3
28
public static long startTime;
4
29
public static long endTime;
You can’t perform that action at this time.
0 commit comments