Skip to content

Tag Archives: palindrome

You are given a string S of two distinct characters as input, the task is to find two strings using characters of the given string,… Read More
Given a binary array A[] of length 2*N, the task is to find the minimum number of partitions that follow the below conditions: Each array… Read More
Given a string S of numbers of length N, the task is to find the minimum number of operations required to change a string into… Read More
Given a string S of length N (1 ≤ N ≤ 103) that consists of a digit from ‘0’ to ‘9’, the task is to… Read More
Given an array of strings S[] of size X where each string has length N. In one move, you can swap the ith character of… Read More
Given a string S of size N consisting of characters ‘0’ to ‘9’, the task is to print the longest palindrome that can be formed… Read More
Given two integers M and N the task is to construct a binary palindromic string consisting of M occurrences of 0s and N occurrences of… Read More
Given a positive integer N, the task is to find the number of distinct ways to express N as a sum of positive palindromic integers… Read More
Given a very large number N, [1 ≤ length of digit of N (n) ≤ 106], the task is to find some positive integer of… Read More
Given a binary array arr[] of size N and an integer K, the task is to check whether the binary array can be turned into… Read More
Given a string str and K pair of characters, the task is to check if string str can be made Palindrome, by replacing one character… Read More
Given an array A[]. The task is to count the number of subsequences such that concatenation of binary representation of the numbers represents palindrome. Examples:… Read More
Given a string str of length N, and an integer K, the task is to form K different strings by choosing characters from the given… Read More
Given a binary string  str, the task is to determine if string str can be converted into a palindrome in K moves. In one move… Read More
Given a matrix arr[][] of size N * N, the task is to find the number of palindromic rows. Examples: Input: arr[][] = {{1, 3,… Read More

Start Your Coding Journey Now!