Min Li's Note
KVM,QEMU, X86 virtualization
Pages
Home
Collection
About
Monday, October 13, 2014
Combinations
Problem
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
Idea
dfs一次得到一个解.
Solution
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment