Given numeric string str, the task is to find the minimum operations needed to make the string palindrome. An operation is defined as: Select one… Read More

# Tag Archives: palindrome

Given a string S, the task is to whether a string can be made palindrome after removing the occurrences of the same character, any number… Read More

Given a complete directed graph having N vertices, whose edges weighs ‘1’ or ‘0’, the task is to find a path of length exactly K… Read More

Given a matrix mat[][] of dimensions N*M, the task is to check if all the diagonals of the matrix(from top-right to bottom-left) are palindromic or… Read More

Given a string S of N characters consisting of ‘?’, ‘0‘, and ‘1‘ and two integers a and b, the task is to find a… Read More

Given a string S consisting of N characters, the task is to check if this string has an reversible equal substring from the start and… Read More

Given a positive integer array arr of size N, the task is to check if number formed, from any arrangement of array elements, form a… Read More

Given two integers N and K, the task is to find the number of palindromic strings of size at most N consisting of the first… Read More

Given a string S, the task is to divide the characters of S to form minimum number of palindromic strings. Note: There can be multiple… Read More

Given a positive integer K, the task is to find Kth smallest palindromic number odd length. Examples:Attention reader! Don’t stop learning now. Get hold of… Read More

Given a string S consisting of N characters of the English alphabet, the task is to check if the given string is a palindrome. If… Read More

Given a string str and an integer X. The task is to find whether the first X characters of both string str and reversed string… Read More

Given an array A[] containing N positive integers, the task is to find the largest possible number K, such that after replacing all elements by… Read More

Given a string S consisting of N characters, the task is to print all palindromic strings of length 3 in lexicographical order that can be… Read More

Given a string S and a character X, the task is to generate a non-palindromic string by inserting the character X in the string S.… Read More