Cody

Problem 2949. Combination logic

Create an algorithm in MATLAB that calculate the combination for the given positive integers n and k as inputs. When k > n, the result is 0. The formula of the combination, for n >= k, can be seen below:

Solution Stats

56.96% Correct | 43.04% Incorrect
Last Solution submitted on Sep 01, 2018