0% found this document useful (0 votes)
76 views3 pages

Top 50 String Problems and Solutions

The document lists various string-related problems categorized into three levels, with each problem marked as 'Solve.' Level 1 includes 14 problems, Level 2 contains 26 problems, and Level 3 has 10 problems, all focusing on different aspects of string manipulation and analysis.

Uploaded by

gusainaayu24
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views3 pages

Top 50 String Problems and Solutions

The document lists various string-related problems categorized into three levels, with each problem marked as 'Solve.' Level 1 includes 14 problems, Level 2 contains 26 problems, and Level 3 has 10 problems, all focusing on different aspects of string manipulation and analysis.

Uploaded by

gusainaayu24
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

Level-1

SN Problems on strings
1 Reverse words in a given string Solve
2 Longest Common Prefix Solve
3 Roman Number to Integer Solve
4 Integer to Roman Solve
5 Closest Strings Solve
6 Divisible by 7 Solve
7 Encrypt the String – II Solve
8 Equal point in a string of brackets Solve
9 Isomorphic Strings Solve
10 Check if two strings are k-anagrams or not Solve
11 Panagram Checking Solve
12 Minimum Deletions Solve
13 Number of Distinct Subsequences Solve
14 Check if string is rotated by two places Solve

Level 2
Problems Solution
1 Implement Atoi Solve
2 Validate an IP address Solve
3 License Key Formatting Solve
4 Find the largest word in dictionary Solve
5 Equal 0,1, and 2 Solve
6 Find and replace in String
7 Add Binary Strings Solve
8 Sum of two large numbers Solve
9 Multiply two strings Solve
10 Look and say Pattern Solve
11 Minimum times A has to be repeated to make B Solvea Substring
12 Excel Sheet – I Solve
13 Form a Palindrome Solve
14 Find the N-th character Solve
15 Next higher palindromic number using the sameSolve set of digits
16 Length of longest prefix suffix Solve
17 Longest K unique characters substring Solve
18 Smallest window in string containing all characters
Solve
19 Longest Palindromic Subsequence Solve
20 Longest substring without repeating characters Solve
21 Substrings of length k with k-1 distinct elementsSolve
22 Count number of substrings Solve
23 Interleaved Strings Solve
24 Print Anagrams together Solve
25 Rank the permutation Solve
26 A Special Keyboard Solve
Level 3
SN Problems Solve
1 Restrictive Candy Crush Solve
2 Edit Distance Solve
3 Search Pattern (KMP-Algorithm) Solve
4 Search Pattern (Rabin-Karp Algorithm) Solve
5 Search Pattern (Z-algorithm) Solve
6 Shortest Common Supersequence Solve

Number of words with K maximum distinct vowels


Solve
7
8 Longest substring to form a Palindrome Solve
9 Longest Valid Parenthesis Solve
10 Distinct Palindromic Substrings Solve
Level 2
Problems Solve
Implement Atoi Solve
Validate an IP address Solve
License Key Formatting Solve
Find the largest word in dictionary Solve
Equal 0,1, and 2 Solve
Find and replace in String
Add Binary Strings Solve
Sum of two large numbers Solve
Multiply two strings Solve
Look and say Pattern Solve
Minimum times A has to be repeated to make B a Substring Solve
Excel Sheet – I Solve
Form a Palindrome Solve
Find the N-th character Solve
Next higher palindromic number using the same set of digits Solve
Length of longest prefix suffix Solve
Longest K unique characters substring Solve
Smallest window in string containing all characters Solve
Longest Palindromic Subsequence Solve
Longest substring without repeating characters Solve
Substrings of length k with k-1 distinct elements Solve
Count number of substrings Solve
Interleaved Strings Solve
Print Anagrams together Solve
Rank the permutation Solve
A Special Keyboard Solve

You might also like