#include <leetcode.h>
|
static void | dfs (set< vector< int > > &s, const vector< int > ¤t, vector< int > rest) |
|
static vector< vector< int > > | permuteUnique (vector< int > &nums) |
|
◆ dfs()
void leetcode::permutations_ii::Solution::dfs |
( |
set< vector< int > > & |
s, |
|
|
const vector< int > & |
current, |
|
|
vector< int > |
rest |
|
) |
| |
|
static |
在文件 leetcode.cpp 第 6446 行定义.
6451 for(
auto it = rest.begin(); it != rest.end(); ++it) {
6452 vector<int> next_current = current;
6453 vector<int> next_rest = rest;
6454 next_current.push_back(*it);
6455 next_rest.erase(next_rest.begin() + (it - rest.begin()));
6456 dfs(s, next_current, next_rest);
static void dfs(set< vector< int > > &s, const vector< int > ¤t, vector< int > rest)
引用了 dfs().
被这些函数引用 dfs() , 以及 permuteUnique().
◆ permuteUnique()
vector< vector< int > > leetcode::permutations_ii::Solution::permuteUnique |
( |
vector< int > & |
nums | ) |
|
|
static |
该类的文档由以下文件生成: