String Matching Interview Questions
Master 29 string matching problems frequently asked in technical interviews. These questions test your understanding of string matchingconcepts and are essential for coding interview success.
29
Total Problems
10
Easy
9
Medium
10
Hard
#3770HardFrequency: 59.3%
Lexicographically Smallest Generated String
#1
Rank
#28EasyFrequency: 55.2%
Find the Index of the First Occurrence in a String
#2
Rank
#3
Rank
#3333MediumFrequency: 47.5%
Find Pattern in Infinite Stream I
#4
Rank
#3352HardFrequency: 47.5%
Find Pattern in Infinite Stream II
#5
Rank
#214HardFrequency: 38.2%
Shortest Palindrome
#6
Rank
#459EasyFrequency: 34.8%
Repeated Substring Pattern
#7
Rank
#616MediumFrequency: 33%
Add Bold Tag in String
#8
Rank
#572EasyFrequency: 31.9%
Subtree of Another Tree
#9
Rank
#686MediumFrequency: 29.7%
Repeated String Match
#10
Rank
#3269MediumFrequency: 27.8%
Number of Subarrays That Match a Pattern I
#11
Rank
#12
Rank
#2292EasyFrequency: 24.4%
Counting Words With a Given Prefix
#13
Rank
#3692HardFrequency: 23.6%
Shortest Matching Substring
#14
Rank
#1508HardFrequency: 22%
Longest Happy Prefix
#15
Rank
#16
Rank
#1874MediumFrequency: 21.9%
Form Array by Concatenating Subarrays of Another Array
#17
Rank
#3305HardFrequency: 20.3%
Count Prefix and Suffix Pairs II
#18
Rank
#2326HardFrequency: 20%
Sum of Scores of Built Strings
#19
Rank
#3024HardFrequency: 19.5%
String Transformation
#20
Rank
#3303HardFrequency: 19.5%
Find Beautiful Indices in the Given Array II
#21
Rank
#3821MediumFrequency: 19.5%
Count Cells in Overlapping Horizontal and Vertical Substrings
#22
Rank
#760MediumFrequency: 16.4%
Bold Words in String
#23
Rank
#1080MediumFrequency: 16.4%
Camelcase Matching
#24
Rank
#3580HardFrequency: 10.5%
Find the Occurrence of First Almost Equal Substring
#25
Rank
#1764EasyFrequency: 8.1%
Maximum Repeating Substring
#26
Rank
#1566EasyFrequency: 7.3%
Check If a Word Occurs As a Prefix of Any Word in a Sentence
#27
Rank
#3245MediumFrequency: 7.3%
Find Beautiful Indices in the Given Array I
#28
Rank
#3309EasyFrequency: 5%
Count Prefix and Suffix Pairs I
#29
Rank
Master String Matching in Real Interviews
Get AI-powered assistance when solving string matching problems during your actual interviews.
Get Started FreeNo credit card required