Skip to content

Tag Archives: palindrome

Given a positive integer K, the task is to find Kth smallest palindromic number odd length. Examples: Input: K = 5Output: 5Explanation:The palindromic numbers 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
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