## Print Fibonacci Series in reverse order

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

## Counting numbers whose difference from reverse is a product of k

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 »

## Reverse a doubly linked list in groups of given size

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 »

## Python list | reverse()

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 »

## Reverse actual bits of the given number

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 | Reverse a String

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 »

## Reverse a Doubly Linked List | Set 4 (Swapping Data)

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 »

## Print Reverse a linked list using Stack

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 »

## Reverse first K elements of given linked list

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 »

## Reverse a Doubly Linked List | Set-2

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 »

## Print words of a string in reverse order

Let there be a string say “I AM A GEEK”. So, the output should be “GEEK A AM I” . This can done in many… Read More »

## Reverse a sublist of linked list

We are given a linked list and positions m and n. We need to reverse the linked list from position m to n. Examples: Input… Read More »

## Find element at given index after given range reversals

An array consisting of N elements is given. There are several reversals we do in unique ranges[L..R]. The task is to print the element at… Read More »

## Reverse an array without using subtract sign ‘-‘ anywhere in the code

Given an array, the task is to reverse the array without using subtract sign ‘-‘ anywhere in your code. It is not tough to reverse… Read More »