String Matching Problems
33 String Matching LeetCode problems · Solve with AI-powered hints & step-by-step explanations.
Learn the coding interview patterns behind these problems.
Start with these
All String Matching problems
28 Find the Index of the First Occurrence in a String Easy214 Shortest Palindrome Hard459 Repeated Substring Pattern Easy572 Subtree of Another Tree Easy686 Repeated String Match Medium796 Rotate String Easy1023 Camelcase Matching Medium1392 Longest Happy Prefix Hard1397 Find All Good Strings Hard1408 String Matching in an Array Easy1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Easy1668 Maximum Repeating Substring Easy1764 Form Array by Concatenating Subarrays of Another Array Medium2185 Counting Words With a Given Prefix Easy2223 Sum of Scores of Built Strings Hard2301 Match Substring After Replacement Hard2430 Maximum Deletions on a String Hard2851 String Transformation Hard3006 Find Beautiful Indices in the Given Array I Medium3008 Find Beautiful Indices in the Given Array II Hard3029 Minimum Time to Revert Word to Initial State I Medium3031 Minimum Time to Revert Word to Initial State II Hard3034 Number of Subarrays That Match a Pattern I Medium3036 Number of Subarrays That Match a Pattern II Hard3042 Count Prefix and Suffix Pairs I Easy3045 Count Prefix and Suffix Pairs II Hard3291 Minimum Number of Valid Strings to Form Target I Medium3292 Minimum Number of Valid Strings to Form Target II Hard3303 Find the Occurrence of First Almost Equal Substring Hard3407 Substring Matching Pattern Easy3455 Shortest Matching Substring Hard3474 Lexicographically Smallest Generated String Hard3529 Count Cells in Overlapping Horizontal and Vertical Substrings Medium