Cody

Problem 759. mathematics , probability problem

Solution 2333008

Submitted on 22 May 2020 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
k = 2; y_correct = 21; assert(isequal(your_fcn_name(k),y_correct))

n = 7 ans = 21

2   Pass
k = 6; y_correct = 462; assert(isequal(your_fcn_name(k),y_correct))

n = 11 ans = 462

3   Pass
k = 20; y_correct = 53130; assert(isequal(your_fcn_name(k),y_correct))

n = 25 ans = 53130

4   Pass
k = 3; y_correct = 56; assert(isequal(your_fcn_name(k),y_correct))

n = 8 ans = 56

5   Pass
k = 5; y_correct = 252; assert(isequal(your_fcn_name(k),y_correct))

n = 10 ans = 252