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
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers64
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
47201 Solvers
-
Return a list sorted by number of occurrences
2601 Solvers
-
Back to basics 23 - Triangular matrix
963 Solvers
-
Is this triangle right-angled?
5408 Solvers
-
Back to Basics - Find no. of elements in a matrix?
295 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!