Need a unique gift idea?
A Pastebin account makes a great Christmas gift


a guest Apr 16th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. bool vis[];
  2. void dfs(v){
  3.     vis[v] = true;
  4.     // para cada vértice x em adj[v]
  5.     if(!vis[x]){
  6.         dfs(x);
  7.     }
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand