Find the minimum number of deletions required to convert a string into a palindrome
Given a string, find the minimum number of deletions required to convert it into a palindrome.
Ace your Coding Interview
Get hired by top tech companies with our comprehensive interview preparation.
Get StartedGiven a string, find the minimum number of deletions required to convert it into a palindrome.
Given a string sorted in descending order, find all lexicographically previous permutations of it. In the lexicographic order, the words are arranged similarly as they are presumed to appear in a dictionary.
Given a string, check if it has a substring that can be used to construct the string by concatenating multiple copies of it.
Given two strings, where the second string is constructed using all characters of the first string except one, find the character that was skipped in the second string.
Given an infix expression, convert it to the postfix expression. Assume that the infix expression is a string of tokens without any spaces.
Given a dictionary of ancient origin where the words are arranged alphabetically, find the correct order of alphabets in the ancient language.
Given a linked list of strings, check whether the concatenation of all values in the list together forms a palindrome. It is not permissible to construct a string out of the linked list nodes and check that string for palindrome.
Find all n–digit numbers with an equal sum of digits at even and odd index, where n varies from 1 to 9.
Write an efficient algorithm to construct the longest palindrome by shuffling or deleting characters from a given string.
Given a string and a pattern, in-place replace all non-overlapping occurrences of the pattern in the string by a specified character.
Given a string, find the first non-repeating character in it by doing only one traversal of it.
Given a string, remove all adjacent duplicates from it. The algorithm should continue removing adjacent duplicates from the string till no duplicate is present in the result.