Skip to content
Mission Peace edited this page Oct 16, 2016 · 7 revisions
  1. Given two strings tells if anagram of first is substring of another - AnagramOfFirstAsSubstring.java
  2. Cycle leader iteration - CycleLeaderIteration.java
  3. Given alternate digits and numbers, move them so that all digits are on one side and numbers on other side - InPlaceTransformationOfString.java
  4. Lexicographic rank of a string - LexicographicRankInPermutation.java
  5. Given a string, find longest palindromic substring in this string - LongestPalindromeSubstring.java
  6. Given a string find longest substring without repetition of characters - LongestSubstringWithoutRepetingCharacter.java
  7. Given an input string S write a function which returns true if it satisfies S = nT - NTMatch.java
  8. Given list of strings, print them in groups if they are anagrams of each other - PrintAnagramTogether.java
  9. Rabin karp substring search - RabinKarpSearch.java
  10. Given a string, rearrange characters in string so that characters are at least d distance away from repeated characters - RearrangeDuplicateCharsdDistanceAway.java
  11. Run length encoding - RunLengthEncoding.java
  12. Given two strings, find smallest window in first string which contains all characters of second string - SmallestWindowContaingAllCharacters.java
  13. KMP substring search - SubstringSearch.java
  14. Wild card searching - WildCardSearch.java
  15. Remove consecutive duplicate elements in character array - RemoveConsecutiveDuplicate.java
  16. Print all combinations of word abbreviation WordAbbreviationCombination.java
  17. Longest substring with at most k distinct characters - LongestSubstringWithKDistinctCharacters.java
  18. Design an algorithm to encode and decode list of strings - StringEncoderDecoder.java
  19. Given a string tell if it is a palindrome. Ignore cases and non alphanumeric characters - ValidPalindrome.java
  20. Valid word abbreviation - ValidWordAbbreviation.java
  21. Find palindrome pairs in array of unique words - PalindromePair.java
Clone this wiki locally