Bitmasks Hashing Sorting SPOJ RATING - Coder Ratings - SPOJ Solution C++ May 15, 2021 Add Comment ➤ Problem Link : RATING 👉 Hint : Policy based DS - ordered_set ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; ... Read More
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
Sorting SPOJ ARRANGE - Arranging Amplifiers - SPOJ Solution C++ May 13, 2021 Add Comment ➤ Problem Link : ARRANGE 👉 Hint : Sorting ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long long ... 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 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
Sorting SPOJ Tree DQUERY - D-query - SPOJ Solution C++ May 07, 2021 Add Comment ➤ Problem Link : DQUERY 👉 Hint : Sort with custom comparator ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; i... Read More
Greedy Sorting SPOJ BUSYMAN - I AM VERY BUSY -SPOJ Solution C++ April 28, 2021 Add Comment ➤ Problem Link : BUSYMAN 👉 Hint : Use sorting and think of a greedy approach ✅ C++ Solution : #include<bits/stdc++.h> using n... Read More
Binary Search Sorting SPOJ MAIN8_C - Shake Shake Shaky - SPOJ Solution C++ April 27, 2021 Add Comment ➤ Problem Link : MAIN8_C 👉 Hint : Sort and apply binary search ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; ... Read More
Number theory Sorting SPOJ Tree INVCNT - Inversion Count - SPOJ Soultion C++ April 02, 2021 Add Comment ➤ Problem Link : INVCNT 👉 Hint : Think of some tree based data structure like segment tree or ordered_set in C++ STL ✅ C++ Solution : ... Read More