find-eventual-safe-states 1.0.0
Find Eventual Safe States
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 41 of file main.cpp.

42{
43 vector<vector<int>> graph = {{1,2},{2,3},{5},{0},{5},{},{}};
44 vector<int> answer = Solution().eventualSafeNodes(graph);
45 for (int el: answer)
46 cout << el << " ";
47 cout << '\n';
48 return 0;
49}
vector< int > eventualSafeNodes(vector< vector< int > > &graph)
Definition main.cpp:26

References Solution::eventualSafeNodes().