Skip to content

Tag Archives: Reverse

Given a number N. The task is to find first N Iccanobif Numbers.Iccanobif Numbers are similar to Fibonacci Numbers. The K-th Iccanobif number can be… Read More
Given a string . Find a string , where B is a palindrome and A is a subsequence of B. A subsequence of a string is a… Read More
Given a source stack, copy the contents of the source stack to destination stack maintaining the same order without using extra space. Examples:  Input :… Read More
The reverse() method of StringBuilder is used to reverse the characters in the StringBuilder. The method helps to this character sequence to be replaced by… Read More
Given a doubly-linked list of positive integers. The task is to print the given doubly linked list data in reverse order. Examples: Input: List =… Read More
The strrev() function is a built-in function in C and is defined in string.h header file. The strrev() function is used to reverse the given… Read More
Given pointer to the head node of a linked list, the task is to recursively reverse the linked list. We need to reverse the list… Read More
Reverse an array or string in Perl. Iterative Way: Iterate over the array from 0 to mid of array. Swap the arr[i] element with arr[size-i]… Read More
The problem is to reverse the given doubly circular linked list. Examples:  Input:  Output:   Recommended: Please try your approach on {IDE} first, before moving on… Read More
Given an array of size n, arrange the first k elements of the array in ascending order and the remaining n-k elements in descending order.… Read More
Given an array and split it from a specified position, and move the first part of array add to the end.   Examples:  Input : arr[]… Read More
Assuming you have gone through LinkedList in java and know about linked list. This post contains different examples for reversing a linked list which are… Read More
Assuming you have gone through arraylist in java and know about arraylist. This post contains different examples for reversing an arraylist which are given below:1.… Read More
Given a linked list, the task is to rearrange the linked list in the following manner:  Reverse the second half of given linked list.  … Read More
Given an array of N numbers where a subarray is sorted in descending order and rest of the numbers in the array are in ascending… Read More

Start Your Coding Journey Now!