@@ -193,62 +193,65 @@ Strings
193
193
1 . Check string palindrome.
194
194
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/checkpalindrome/CheckPalindrome.java
195
195
196
- 2 . Find common prefix for a given list of strings.
196
+ 2 . Find minimum distance between two words (order preserved) in a big string. (Kadane's Algo)
197
+ Link:
198
+
199
+ 3 . Find common prefix for a given list of strings.
197
200
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findcommonprefix/CommonPrefix.java
198
201
199
- 3 . Find duplicate strings in list of strings.
202
+ 4 . Find duplicate strings in list of strings.
200
203
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findduplicates/FindDuplicates.java
201
204
202
- 4 . Find latest version problem.
205
+ 5 . Find latest version problem.
203
206
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findlatestversion/FindLatestVersion.java
204
207
205
- 5 . Find Longest Common Subsequence.
208
+ 6 . Find Longest Common Subsequence.
206
209
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findlongestcommonsubsequence/LCS.java
207
210
208
- 6 . Find Longest Palindrome in a string.
211
+ 7 . Find Longest Palindrome in a string.
209
212
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findlongestpalindrome/FindLongestPalindrome.java
210
213
211
- 7 . Print permutations of all characters in a string.
214
+ 8 . Print permutations of all characters in a string.
212
215
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findpermutations/FindPermutations.java
213
216
214
- 8 . Find total number of palindromes in a String.
217
+ 9 . Find total number of palindromes in a String.
215
218
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/findtotalpalindromes/FindTotalNoOfPalindromes.java
216
219
217
- 9 . Find first non-repeated character.
220
+ 10 . Find first non-repeated character.
218
221
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/firstnonrepeatedchar/FirstNonRepeatedChar.java
219
222
220
- 10 . Given two (dictionary) words as Strings, determine if they are isomorphic.
223
+ 11 . Given two (dictionary) words as Strings, determine if they are isomorphic.
221
224
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/isomorphicstrings/Isomorphic.java
222
225
223
- 11 . Given s string, find max size of a sub-string, in which no duplicate chars present.
226
+ 12 . Given s string, find max size of a sub-string, in which no duplicate chars present. (Kadane's Algo)
224
227
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/longestsubstringnorepeatedchar/LongestSubstringUnrepeatedChar.java
225
228
226
- 12 . Find min substring that contains all the char of target string.
229
+ 13 . Find min substring that contains all the char of target string.
227
230
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/minimumsubstringcontains/MinimumSubstring.java
228
231
229
- 13 . Print diamonds on basis of input size.
232
+ 14 . Print diamonds on basis of input size.
230
233
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/printdiamonds/PrintDiamonds.java
231
234
232
- 14 . Identify all the 'n' (n will be input) letter-long sequences that occur more than once in any given input string.
235
+ 15 . Identify all the 'n' (n will be input) letter-long sequences that occur more than once in any given input string.
233
236
OR Find repeating sequence of specified length in given DNA chromosome sequence.
234
237
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/repeatingstringsofspecifiedlength/RepeatingStringOfSpecificLength.java
235
238
236
- 15 . Reverse a string.
239
+ 16 . Reverse a string.
237
240
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/reversestring/ReverseString.java
238
241
239
- 16 . Find all dictionary words in a given string.
242
+ 17 . Find all dictionary words in a given string.
240
243
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/segmentstringfindalldictwords/StringSegmentation.java
241
244
242
- 17 . Return true if stringA is subsequence of stringB.
245
+ 18 . Return true if stringA is subsequence of stringB.
243
246
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/stringsubsequencecheck/CheckStringSubsequence.java
244
247
245
- 18 . Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one call to isSubstring.
248
+ 19 . Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one call to isSubstring.
246
249
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/substringcheckforrotatedstring/RotatedStringSubStringCheck.java
247
250
248
- 19 . Check if a string has all unique characters.
251
+ 20 . Check if a string has all unique characters.
249
252
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/uniquecharscheck/CheckUniqueCharacters.java
250
253
251
- 20 . Count word occurrence in a large text file.
254
+ 21 . Count word occurrence in a large text file.
252
255
Link: https://github.com/techpanja/interviewproblems/blob/master/src/strings/wordcountinlargefile/WordOccurencesInLargeFile.java
253
256
254
257
Threads
0 commit comments