## Sorting array with reverse around middle

Consider the given array arr[], we need to find if we can sort array with given operation. We are only allowed to reverse subarray such… Read More »

Consider the given array arr[], we need to find if we can sort array with given operation. We are only allowed to reverse subarray such… Read More »

Floyd’s triangle is a triangle with first natural numbers. Task is to print reverse of Floyd’s triangle. Examples: Input : 4 Output : 10 9… Read More »

Given two singly linked lists, find the Longest common suffix of two linked lists. If there are no common characters which are suffixes, return the… Read More »

A linked list is a linear collection of data elements, in which each node points to the next node. Unlike an array, it doesn’t have… Read More »

Given a tree and a node data, your task to reverse the path till that particular Node. Examples: Input : 7 / \ 6 5… Read More »

Given a number n then print n terms of fibonacci series in reverse order. Examples: Input : n = 5 Output : 3 2 1… Read More »

Given two number l and r. Count the total numbers between l and r which when subtracted from their respective reverse, the difference is a… Read More »

Given a doubly linked list containing n nodes. The problem is to reverse every group of k nodes in the list. Examples: Recommended: Please try… Read More »

reverse() is an inbuilt method in Python programming language that reverses objects of list in place. Syntax: list_name.reverse() Parameters: There are no parameters Returns: The… Read More »

Given a non-negative integer n. The problem is to reverse the bits of n and print the number obtained after reversing the bits. Note that… Read More »

PHP serves us with many built-in methods which can be used to manipulate strings. In this article, we will learn about how to reverse a… Read More »

Given a Doubly Linked List, we are asked to reverse the list in-place without using any extra space. Examples: Input : 1 <–> 2 <–>… Read More »

Given a linked list, print reverse of it without modifying the list. Examples: Input : 1 2 3 4 5 6 Output : 6 5… Read More »

Given pointer to the head node of a linked list and a number K, the task is to reverse the first K nodes of the… Read More »

Write a program to reverse the given Doubly Linked List. See below diagrams for example. (a) Original Doubly Linked List (b) Reversed Doubly Linked List… Read More »