Skip to content

Commit

Permalink
Update BoardPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritik2604 authored May 24, 2020
1 parent 82e2132 commit 920852a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions DynamicProgramming/BoardPath
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
package DynamicProgramming.BoardPath;
/*
* this is an important Algo in which
* we have starting and ending of board and we have to reach
* we have to count no. of ways
* that help to reach end point i.e number by rolling dice
* which have 1 to 6 digits

Test Case:
here target is 10

int n=10;
startAlgo();
System.out.println(bpR(0,n));
System.out.println(endAlgo()+"ms");
int[] strg=new int [n+1];
startAlgo();
System.out.println(bpRS(0,n,strg));
System.out.println(endAlgo()+"ms");
startAlgo();
System.out.println(bpIS(0,n,strg));
System.out.println(endAlgo()+"ms");



*/
public class BoardPath {
public static long startTime;
public static long endTime;
Expand Down

0 comments on commit 920852a

Please sign in to comment.