watch video three times
Can't understand this
since the dice the dice have six outcomes so we can choose any one .
like if you look at the recursive tree of this it will be something like this:
1
/ | | | | \
1 2 3 4 5 6
and we keep faith our function getBoardPath(cur +dice,end); will give us all the possible ways we choose any dice number then after that we simply add the result to our arrayList<> mr
If this doesn’t resolve your doubt, can you please explain where exactly you are facing problem
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.