## Merge first half and reversed second half of the linked list alternatively

Given a linked list, the task is to rearrange the linked list in the following manner: Reverse the second half of given linked list. Rearrange… 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. Rearrange… 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 »

Given an array of n positive integers, the task is to find the minimum inverting factor in the given array. Inverting factor is defined as… Read More »

Given a linked list with n nodes, reverse it in the following way : If n is even, reverse it in group of n/2 nodes.… Read More »

Given a string containing a number of words. If the count of words in string is even then reverse its even position’s words else reverse… Read More »

Given a string s, print reverse of string and remove the characters from the reversed string where there are vowels in the original string. Examples:… 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 »