Tag Archives: Reverse

Given a XOR linked list and an integer K, the task is to reverse every K nodes in the given XOR linked list. Examples: Input:… Read More
Given an array arr[] consisting of N positive integers, the task is to find the maximum possible difference between the sum of even and odd-indexed… Read More
Given an array arr[] of size N, the task to reverse the array using Stack. Examples: Input: arr[] = { 10, 20, 30, 40, 50… 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 a circular array arr[] of size N and an index K, the task is to reverse all elements of the circular array starting from… Read More
Given a XOR linked list, the task is to reverse the XOR linked list. Examples: Input: 4 <–> 7 <–> 9 <–> 7Output: 7 <–>… Read More
Given two strings X and Y of length N, the task is to check if both the strings can be made equal by reversing any… Read More
Given an integer N, the task is to count the numbers less than or equal to N such that each number contains at least one… Read More
Given an array arr[] of size N, having an equal number of even and odd integers, the task is to find the minimum number of… Read More
Given number can be said palindromic in nature if the reverse of the given number is the same as that of a given number. Length… Read More
Given string str consisting of lowercase letters, the task is to find the minimum number of characters to be deleted from the given string such… Read More
Given an integer X, the task is to count the total number of three-digit numbers having difference X with its reverse. If no such number… Read More
Given a string S of length N and an integer P denoting a pointer to Pth index of the string, the task is to find… Read More
Given an integer N, the task is to find the smallest number to be subtracted from N to obtain a palindrome. Examples: Input: N =… Read More
Given an array of strings S[] consisting of N distinct strings of length M. The task is to generate the longest possible palindromic string by… Read More