Update appNew update is available. Click here to update.
About
3rd year btech student . searching for job opportunities
Vellore Institute of Technology 2025
My Stats
EXP gained
yellow-spark
10161
Level
7 (Expert)
Community stats
Discussions
0
Upvotes
0
Know more
159
Total problems solved
88
Easy
61
Moderate
10
Hard
0
Ninja
Jan Jan Feb Feb Mar Mar Apr Apr May May Jun Jun Jul Jul Aug Aug Sep Sep Oct Oct Nov Nov Dec Dec

Current streak:

0 days

Longest streak:

9 days

Less

More

Achievements
4
Ronin
Topics
Linked List
Hash Table
+ 2 more
2
Samurai
Topics
Arrays
Binary Search
Discussions
solve through dfs
Interview problems

void ss(int node,vector<bool> &visited,stack<int> &st,unordered_map<int ,list<int>> &adj){

    visited[node]=1;

    for(auto neighbour:adj[node]){

        if(!visited[neighbour]){

            ss(neighbour,visited,st,adj);

        }

    }

    st.push(node);

  

}

 

profile
suman_pandey
Published On 07-Mar-2023
103 views
0 replies
0 upvotes