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

57.5% Correct | 42.5% Incorrect
Last Solution submitted on Mar 14, 2020

Problem Recent Solvers35

Suggested Problems

Problem Tags