## Form the largest palindromic number using atmost two swaps

Given a non-negative palindromic number num containing n number of digits. The problem is to apply at most two swap operations on the number num… Read More »

## Next word that does not contain a palindrome and has characters from first k

Given a string and a limit k, find lexicographically next word which contains characters from a set of first K letters of the English alphabet… Read More »

## Python | Check if binary representation is palindrome

Given an integer ‘n’, write a Python function that returns true if binary representation of x is palindrome else return false. Examples: Input : n… Read More »

## Number of palindromic subsequences of length k where k <= 3

Given a string S of length n and a positive integer k. The task is to find number of Palindromic Subsequences of length k where… Read More »

## Sum of first K even-length Palindrome numbers

Given a integer k, find the sum of first k even-length palindrome numbers. Even length here refers to the number of digits of a number… Read More »

## Construct lexicographically smallest palindrome

Given a string of lowercase alphabets. Some of characters of given string got corrupted and are now represented by *. We can replace * with… Read More »

## Binary String of given length that without a palindrome of size 3

Given an integer n. Find a string of characters ‘a’ and ‘b’ such that the string doesn’t contain any palindrome of length 3. Examples: Input… Read More »

## Minimum cost to convert string into palindrome

Convert string S into a palindrome string. You can only replace a character with any other character. When you replace character ‘a’ with any other… Read More »

## Double Base Palindrome

Double base Palindrome as the name suggest is a number which is Palindrome in 2 bases. One of the base is 10 i.e. decimal and… Read More »

## Minimum reduce operations to convert a given string into a palindrome

Given a String find the minimum number of reduce operations required to convert a given string into a palindrome. In a reduce operation, we can… Read More »

## Check if number is palindrome or not in Octal

Given a number which may be in octal or in decimal. If the number is not octal then convert it into octal then check if… Read More »

## Number of positions where a letter can be inserted such that a string becomes palindrome

Given a string str, we need to find the no. of positions where a letter(lowercase) can be inserted so that string becomes a palindrome. Examples:… Read More »

## Next higher palindromic number using the same set of digits

Given a palindromic number num having n number of digits. The problem is to find the smallest palindromic number greater than num using the same… Read More »

## Print all palindromic paths from top left to bottom right in a matrix

Given a matrix containing lower alphabetical characters only, we need to print all palindromic paths in given matrix. A path is defined as a sequence… Read More »

## Check if any anagram of a string is palindrome or not

We have given a anagram string and we have to check whether it can be made palindrome o not. Examples: Input : geeksforgeeks Output :… Read More »