C ( i , j ) = ( C ( i - 1 , j ) + C ( i - 1 , j - 1 ) ) % p
else f [ i ] [ j ] = ( f [ i - 1 ] [ j ] + f [ i - 1 ] [ j - 1 ] ) % ( int ) p ; } } } static void operations ( int arr [ ] , int n , int f [ ] [ ] ) { long p = 1000000007 ; nCr ( n , p - 1 , f ) ; Arrays . sort ( arr ) ;