Skip to content

Tag Archives: palindrome

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
Given a string, our task is to find string is palindrome or not. Example: Input : "race" Output : passed string is not a palidrome… Read More
Given a string S representing a sentence, the task is to reverse the order of all palindromic words present in the sentence. Examples: Input: S… Read More
Given a string S representing a sentence, the task is to reorder all the palindromic words present in the sentence in sorted order. Examples: Input:… Read More
Given three positive integers L, R, and K, the task is to find the largest group of palindromic numbers from the range [L, R] such… Read More
Given a string S consisting of lowercase alphabets, the task is to check whether the given string can be rearranged such that the string can… Read More
Given an array Q[][] consisting of N queries of the form {L, R}, the task for each query is to find the total count of… Read More
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