MeetCode
Count Subsets Size K
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Run
Submit
Dark
Problem Statement
Solutions
Submissions
Count Subsets Size K
Easy
Computer Mathematics
Combinatorics
22 views
Explanation
Complexity
Problem Statement
Given n and k, count k-sized subsets.
Input Format
Two integers n k.
Output Format
One integer.
Example
Input
6 3
Output
20
Constraints
0
Input / Output Format
Input Format
Two integers n k.
Output Format
One integer.
Constraints
0
Examples
Input:
6 3
Output:
20
Example Solution (Public)
Computer Mathematics
This is C(n,k).
Official Solution Code
Wrap
Copy
This is C(n,k).
Please
login
to submit solutions.
Editor
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Test Cases
Output
Submission Result
Input
6 3
Expected Output
20
Compile Output
Error
Output
Please
login
to submit solutions.