problemscpp
A collection of my answers to algorithm problems in c++.
|
#include <leetcode.h>
Public 成员函数 | |
void | dfs (bool *dfsd, int v, int i) |
vector< vector< int > > | getAncestors (int n, vector< vector< int > > &edges) |
Private 属性 | |
unordered_map< int, set< int > > | ancestors |
unordered_map< int, unordered_set< int > > | nexts |
在文件 leetcode.h 第 1500 行定义.
void leetcode::all_ancestors_of_a_node_in_a_directed_acyclic_graph::Solution::dfs | ( | bool * | dfsd, |
int | v, | ||
int | i | ||
) |
在文件 leetcode.cpp 第 3886 行定义.
引用了 ancestors, dfs() , 以及 nexts.
被这些函数引用 dfs() , 以及 getAncestors().
vector< vector< int > > leetcode::all_ancestors_of_a_node_in_a_directed_acyclic_graph::Solution::getAncestors | ( | int | n, |
vector< vector< int > > & | edges | ||
) |
|
private |
在文件 leetcode.h 第 1502 行定义.
被这些函数引用 dfs() , 以及 getAncestors().
|
private |
在文件 leetcode.h 第 1501 行定义.
被这些函数引用 dfs() , 以及 getAncestors().