text: Function to calculate the probability for the given sum to be equal to sum in N throws of dice
code: static float find ( int N , int sum ) { if ( N < 0 sum < 0 ) return 0 ; if ( dp [ N , sum ] > 0 ) return dp [ N , sum ] ;