Permutation
1 | The set [1,2,3,...,n] contains a total of n! unique permutations. |
1 | public: |
Combinations
1 | Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. |
1 | Input: n = 4, k = 2 |
1 | class Solution { |
Subsets
1 |
|
Jason Lee's Blog
1 | The set [1,2,3,...,n] contains a total of n! unique permutations. |
1 | public: |
1 | Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. |
1 | Input: n = 4, k = 2 |
1 | class Solution { |
1 | #include<stdio.h> |
WeChat Pay
Alipay