Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 608 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 608 Bytes

| English | 简体中文 |

题目描述

给定两个整数 nk,返回 1 ... n 中所有可能的 k 个数的组合。

示例:

输入: n = 4, k = 2
输出:
[
  [2,4],
  [3,4],
  [2,3],
  [1,2],
  [1,3],
  [1,4],
]

相关话题

相似题目