Ad Hoc Sorting SPOJ RKS - RK Sorting - SPOJ Solution C++ May 14, 2021 Add Comment ➤ Problem Link : RKS 👉 Hint : Sorting with custom comparator ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #d... Read More
Ad Hoc Recursion SPOJ DYZIO - Dyzio - SPOJ Solution C++ May 12, 2021 Add Comment ➤ Problem Link : DYZIO 👉 Hint : Recursion ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int ans=-1; unordere... Read More
Ad Hoc Sorting SPOJ CANDY - Candy I - SPOJ Solution C++ May 11, 2021 Add Comment ➤ Problem Link : CANDY 👉 Hint : Use sorting ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int main() { while... Read More
Ad Hoc SPOJ CANDY3 - Candy III - SPOJ Solution C++ May 10, 2021 Add Comment ➤ Problem Link : CANDY3 👉 Hint : Simple logic using modulus ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #de... Read More
Ad Hoc SPOJ Strings EDIT - Edit Distance Again - SPOJ Solution C++ May 10, 2021 Add Comment ➤ Problem Link : EDIT 👉 Hint : Simple string functions ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int main... Read More
Ad Hoc Greedy Sorting SPOJ GMSTRE - Game Store -SPOJ Solution C++ May 08, 2021 Add Comment ➤ Problem Link : GMSTRE 👉 Hint : Sort with custom comparator ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; s... Read More
Ad Hoc Bitmasks SPOJ VILLAGES - Villages by the River - SPOJ Solution C++ May 06, 2021 Add Comment ➤ Problem Link : VILLAGES 👉 Hint : Use bitset in C++ STL ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #defi... Read More
Ad Hoc Combinatorics SPOJ MARBLES - Marbles - SPOJ Solution C++ April 30, 2021 Add Comment ➤ Problem Link : MARBLES 👉 Hint : Efficient approach for finding combinations ✅ C++ Solution : #include<bits/stdc++.h> using... Read More
Ad Hoc Hashing SPOJ AMR12D - The Mirror of Galadriel - SPOJ Solution C++ April 28, 2021 Add Comment ➤ Problem Link : AMR12D 👉 Hint : Use unordered_set ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; unordered_s... Read More