DFS Hashing SPOJ MKJUMPS - Making Jumps - SPOJ Solution C++ May 15, 2021 Add Comment ➤ Problem Link : MKJUMPS 👉 Hint : Use dfs and map ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int arr1[8]=... Read More
DFS Dynamic Programming SPOJ RPLA - Answer the boss! - SPOJ Solution C++ May 14, 2021 Add Comment ➤ Problem Link : RPLA 👉 Hint : 1D DP ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; vector<int> adj[100... Read More
DFS SPOJ CAM5 - prayatna PR - SPOJ Solution C++ May 07, 2021 Add Comment ➤ Problem Link : CAM5 👉 Hint : Use DFS ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; void dfs(vector<vect... Read More
DFS SPOJ PT07Z - Longest path in a tree - SPOJ Solution C++ May 02, 2021 Add Comment ➤ Problem Link : PT07Z 👉 Hint : Use DFS ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; vector<int> arr... Read More
DFS Graphs SPOJ PT07Y - Is it a tree - SPOJ Solution C++ April 27, 2021 Add Comment ➤ Problem Link : PT07Y 👉 Hint : Simple DFS ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; void dfs(vector<... Read More
DFS Graphs SPOJ BUGLIFE - A Bug’s Life - SPOJ Solution C++ April 26, 2021 Add Comment ➤ Problem Link : BUGLIFE 👉 Hint : Find cycle in graph ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; vector... Read More
DFS SPOJ TREEORD - Tree _order - SPOJ Solution C++ April 25, 2021 Add Comment ➤ Problem Link : TREEORD 👉 Hint : edit please ✅ C++ Solution : #include <bits/stdc++.h> using namespace std; struct btnode { ... Read More
DFS SPOJ TFRIENDS - True Friends - SPOJ Solution C++ April 23, 2021 Add Comment ➤ Problem Link : TFRIENDS 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long... Read More
DFS Dynamic Programming SPOJ TAP2013C - Little Red-Cap - SPOJ Solution C++ April 17, 2021 Add Comment ➤ Problem Link : TAP2013C 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll lon... Read More