just run code of others.
Problem
Given two integers n and k, return all possible combinations of k numbers out of 1 … n.
Java
Iterative Algorithm
1 | class Solution { |
Submission Detail
- 27 / 27 test cases passed.
- Runtime: 3 ms, faster than 88.15% of Java online submissions for Combinations.
- Memory Usage: 39.7 MB, less than 80.43% of Java online submissions for Combinations.