Skip to content

Tag Archives: Reverse

Given two arrays A[] and B[] of equal size N, the task is to check whether A[] can be made equal to B[] by reversing… Read More
Given a string str, the task is to check if that string is a Reverse Bitonic string or not. If the string str is reverse… Read More
Given an array arr[] of positive integers. The task is to reverse a subarray to minimize the sum of elements at even places and print… Read More
Given an array arr[] of N integers, the task is to count the total number of Reverse Bitonic Subarray from the given array.  A Reverse… Read More
Given an array arr[] containing N integers, the task is to rearrange the array such that the odd indexed elements are in reverse order. Examples:… Read More
Given a number N, the task is to print the first N numbers such that every number and the reverse of the number is divisible… Read More
Given a sentence in the form of string str, the task is to reverse each word of the given sentence in C++. Examples:   Input: str =… Read More
Given a number N, the task is to print the numbers from N to 1.Examples:  Input: N = 10 Output: 10 9 8 7 6 5… Read More
Given a binary string of size N and an integer K, the task is to perform K operations upon the string and print the final… Read More
Given a Linked List which represents a sentence S such that each node represents a letter, the task is to reverse the sentence without reversing… Read More
Given a string str, and two integers L and R, the task is to reverse the string in the range [L, R] i.e. str[L…R].Examples:  Input:… Read More
Given a linked list, the task is to reverse the contiguous even elements and print the updated linked list.  Input: 1 -> 2 -> 3… Read More
Given string str consisting of a sentence, the task is to reverse every word of the sentence except the first and last character of the… Read More
Given an unsigned integer N. The task is to reverse all bytes of N without using a temporary variable and print the reversed number.  Examples:… Read More
Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d… Read More

Start Your Coding Journey Now!