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
SPOJ Strings Z Algorithm QUERYSTR - Query Problem SPOJ Solution C++ May 05, 2021 Add Comment ➤ Problem Link : QUERYSTR 👉 Hint : Use Z Algorithm ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int Z[10000... Read More
Ad Hoc Greedy SPOJ Strings INS14C - Digo plays with Numbers - SPOJ Solution C++ March 30, 2021 Add Comment ➤ Problem Link : INS14C 👉 Hint : Use greedy approach ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int main()... Read More
SPOJ Strings EPALIN - Extend to Palindrome - SPOJ Solution C++ March 28, 2021 Add Comment ➤ Problem Link : EPALIN 👉 Hint : Find longest suffix of given string which is also a prefix of reverse string ✅ C++ Solution : #inc... Read More
SPOJ Strings EMTY2 - Can You Make It Empty 2 March 23, 2021 Add Comment ➤ Problem Link : EMTY2 👉 Hint : Think about substrings and their concatenation ✅ C++ Solution : #include<bits/stdc++.h> using... Read More
SPOJ Strings NHAY - A Needle in the Haystack - SPOJ Solution C++ March 20, 2021 Add Comment ➤ Problem Link : NHAY 👉 Hint : Standard Pattern Searching(Rabin–Karp(given below) or KMP) ✅ C++ Solution : #include<bits/stdc++.... Read More
SPOJ Strings NAJPF - Pattern Find - SPOJ Solution C++ March 16, 2021 Add Comment ➤ Problem Link : NAJPF 👉 Hint : Standard Pattern Searching(KMP or some other algorithm like Rabin-Karp etc.) ✅ C++ Solution : #incl... Read More