全排列
Data Structures & Algorithms · 3 notes
- Next Permutationhistorical
Implement a function that obtains the next permutation. The algorithm must rearrange the given sequence of numbers into the next lexicographically greater permutation.
- Subsetshistorical
Given an integer array nums whose elements are all distinct, return all possible subsets (the power set).