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
BFS DFS Graphs SPOJ ALCATRAZ3 - THE HONEYCOMB MAZE - SPOJ Solution C++ April 10, 2021 Add Comment ➤ Problem Link : ALCATRAZ3 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; char arr[101][1... Read More
DFS Dynamic Programming Graphs Number theory SPOJ KFSTB - Help the Commander in Chief - SPOJ Solution C++ April 06, 2021 Add Comment ➤ Problem Link : KFSTB 👉 Hint : Use DFS with DP ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define m 100... Read More
Graphs Shortest Path SPOJ SAMER08A - Almost Shortest Path - SPOJ Solution C++ March 21, 2021 Add Comment ➤ Problem Link : SAMER08A 👉 Hint : Apply djikstra algorithm multiple times ✅ C++ Solution : #include<bits/stdc++.h> using nam... Read More
Graphs Shortest Path SPOJ HIGHWAYS - Highways - SPOJ Solution C++ March 20, 2021 Add Comment ➤ Problem Link : HIGHWAYS 👉 Hint : Find shortest path in graph (Djikstra) ✅ C++ Solution : #include<bits/stdc++.h> using name... Read More
BFS Graphs SPOJ ELEVTRBL - Elevator Trouble - SPOJ Solution C++ March 19, 2021 Add Comment ➤ Problem Link : ELEVTRBL 👉 Hint : Count number of levels using BFS ✅ C++ Solution : #include<bits/stdc++.h> using namespace ... Read More
DFS Dynamic Programming Graphs SPOJ SAFECRAC - Crack the Safe - SPOJ Solution C++ March 17, 2021 Add Comment ➤ Problem Link : SAFECRAC 👉 Hint : Graph with DP ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll lon... Read More