Skip to content

Tag Archives: palindrome

Given a string S consisting of lowercase English alphabets, the task is to find the minimum number of characters required to be removed such that… Read More
Given a binary tree consisting of N nodes, the task is to check if the nodes in the top view of a Binary Tree forms… Read More
Given a string S, the task for every index of the string is to find the length of the longest palindromic substring that either starts… Read More
https://write.geeksforgeeks.org/internshipGiven three strings S1, S2, and S3 of lengths L, M, and N respectively, the task is to check if it is possible to choose… Read More
Given a Binary Tree with each node representing an alphabet, the task is to find lexicographically smallest palindromic root to leaf path. If no palindromic… Read More
Given a string str consisting of lowercase characters, the task is to modify the string such that it does not contain any palindromic substring of… Read More
Given a string, S, the task is to find the maximum number of distinct indexed palindromic subsequences of length 3 possible from the given string.… Read More
Prerequisites: Z-algorithm Given a string S, the task is to find the maximum number of palindromes that can be formed after performing the given steps:… Read More
Given an array arr[] of size 26, representing frequencies of character ‘a’ to ‘z’, the task is to find the maximum number of palindromic strings… Read More
Given a positive integer N, the task is to find the largest palindromic number less than N and it can be expressed as the product… Read More
Given two integers N and K (K ≤ N), the task is to obtain a string of length N such that maximum length of a… Read More
Given a matrix with N rows and M columns, the task is to find the minimum replacements required to make all rows and columns of… Read More
Given two strings a and b of the same length, the task is to check if splitting both the strings and concatenating their opposite substrings,… Read More
Given a string S of size N and a positive integer K ( where N % K = 0), the task is to find the… Read More

Start Your Coding Journey Now!