String Problems Topic Wise Last Updated : 23 Jul, 2025 Suggest changes Share Like Article Like Report In this post, string problems based on different topics are mentioned. Please refer String Data Structure article for fundamentals, basic operations and problems based on difficulty.Binary String:Check if all bits can be made same by single flipNumber of flips to make binary string alternateBinary representation of next numberMin flips of continuous characters to make all characters same in a stringGenerate all binary strings without consecutive 1’sFind i’th Index character in a binary string obtained after n iterationsGenerate n-bit Gray CodesSubstring & Subsequence:All Occurrences of a SubstringAll substrings of a given stringCheck for SubsequenceAll subsequences of a stringAll Occurrences of a SubstringCount Distinct SubsequencesCount distinct occurrences as a subsequenceLongest Common SubsequenceShortest Superstring ProblemPrinting Shortest Common SupersequenceShortest Common SupersequenceLongest Repeating SubsequenceLongest Palindromic SubsequencePattern Searching:Naive algorithm for Pattern SearchingKMP Algorithm for Pattern SearchingZ algorithmWord Search - 8 Directions & Straight MovementWord Search - 4 Directions & Zig-Zag AllowedWildcard Pattern MatchingAho-Corasick AlgorithmStrings that match specific patternCheck if string follows a defined orderRegular Expression MatchingProblems on Palindrome String:Check for PalindromeCheck for rotation of a palindromeCheck if rearrangement can form a palindromeChecking palindromes in a streamPrint all palindromic partitions of a stringMinimum additions at front to make palindromeMake largest palindrome by changing at most K-digitsMinimum deletions to make palindromeMinimum insertions for palindrome with permutations K kartik Follow 0 Article Tags : Strings DSA Explore DSA FundamentalsLogic Building Problems 2 min read Analysis of Algorithms 1 min read Data StructuresArray Data Structure 3 min read String in Data Structure 2 min read Hashing in Data Structure 2 min read Linked List Data Structure 2 min read Stack Data Structure 2 min read Queue Data Structure 2 min read Tree Data Structure 2 min read Graph Data Structure 3 min read Trie Data Structure 15+ min read AlgorithmsSearching Algorithms 2 min read Sorting Algorithms 3 min read Introduction to Recursion 14 min read Greedy Algorithms 3 min read Graph Algorithms 3 min read Dynamic Programming or DP 3 min read Bitwise Algorithms 4 min read AdvancedSegment Tree 2 min read Binary Indexed Tree or Fenwick Tree 15 min read Square Root (Sqrt) Decomposition Algorithm 15+ min read Binary Lifting 15+ min read Geometry 2 min read Interview PreparationInterview Corner 3 min read GfG160 3 min read Practice ProblemGeeksforGeeks Practice - Leading Online Coding Platform 6 min read Problem of The Day - Develop the Habit of Coding 5 min read My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like