Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.8K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Linked List
666+ articles
Linked Lists
302+ articles
Reverse
161+ posts
Recent Articles
Popular Articles
How To Reverse A List In Python Using Slicing
Last Updated: 23 July 2025
In Python, list slicing is a common practice and it is the most used technique for programmers to solve efficient problems. In this article, we will see how we can reverse...
read more
Python
Python Programs
Picked
Reverse
Automating File Movement on your system test
Last Updated: 23 July 2025
111 Imagine a situation like this: You have a folder containing files of multiple types liketxt,mp3,etc. You decide to clean up this mess and organize them in a way that ...
read more
Interview Experiences
Combinatorial
loop
EA
time complexity
LIS
Reverse
TCS-coding-questions
LTI
Find Array formed by reversing Prefix each time given character is found
Last Updated: 27 October 2022
Given an array arr[] of length N consisting of uppercase English letters only and a letter ch. the task is to find the final array that will form by reversing the prefix e...
read more
Pattern Searching
DSA
Arrays
Reverse
prefix
Reverse given Linked List in groups of specific given sizes
Last Updated: 23 July 2025
Given the linked list and an array arr[] of size N, the task is to reverse every arr[i] nodes of the list at a time (0 ≤ i N).Note: If the number of nodes in the list is ...
read more
Linked List
Geeks Premier League
Geeks-Premier-League-2022
DSA
Reverse
Lexicographically smallest string formed by reversing Substrings of string S exactly K times
Last Updated: 06 April 2023
Given a string S and an integer K, the task is to find the lexicographically smallest string possible after reversing any substring of any length exactly K times.Examples:...
read more
Strings
Geeks Premier League
Geeks-Premier-League-2022
DSA
Reverse
lexicographic-ordering
substring
Rearrange given Array by splitting in half and inserting second half in reverse at alternate position
Last Updated: 10 March 2022
Given an array arr[] of even length N, the task is to perform the following operations on the given array:Split the given array in half.Insert the second half in reverse o...
read more
Misc
DSA
Arrays
array-rearrange
Reverse
partition
Reverse first K elements of the given Stack
Last Updated: 23 July 2025
Given a stack S and an integer K, the task is to reverse the first K elements of the given stackExamples:Input: S = [ 1, 2, 3, 4, 5, 8, 3, 0, 9 ], K = 4Output: [ 4, 3, 2, ...
read more
Stack
DSA
Reverse
Reverse digits of an integer with overflow handled | Set 2
Last Updated: 23 July 2025
Given a 32-bit integer N. The task is to reverse N, if the reversed integer overflows, print -1 as the output.ExamplesInput: N = 123Output: 321Input: N = -123Output: -321I...
read more
Misc
Mathematical
DSA
number-digits
Reverse
Find maximum pairwise sum in Linked List that are equidistant from front and back
Last Updated: 23 July 2025
Given a linked list lis of length N, where N is even. The task is to maximize the sum of two equidistant nodes from the front and back ends of the given linked list.Note: ...
read more
Linked List
Greedy
Divide and Conquer
Algo Geek
Algo-Geek 2021
DSA
Reverse
Find original array from given array which is obtained after P prefix reversals | Set-2
Last Updated: 23 July 2025
Given an array arr[] of size N and an integer P, the task is to find the original array from the array obtained by P prefix reversals where in ith reversal the prefix of s...
read more
Algo Geek
Algo-Geek 2021
DSA
Arrays
Reverse
prefix
Find the original array from given array obtained after P prefix reversals
Last Updated: 23 July 2025
Given an array arr[] of size N and an integer P (P N), the task is to find the original array from the array obtained by P prefix reversals where in ith reversal the pref...
read more
Greedy
Algo Geek
Algo-Geek 2021
DSA
Arrays
Reverse
prefix
two-pointer-algorithm
Reverse the rows and columns of a matrix alternatively
Last Updated: 31 December 2021
Given a matrix arr[][] of size M*N, where M is the number of rows and N is the number of columns. The task is to reverse the rows and columns of the matrix alternatively i...
read more
Mathematical
Matrix
Algo Geek
Algo-Geek 2021
DSA
Arrays
Reverse
C++ Program to Check if a string can be obtained by rotating another string d places
Last Updated: 23 July 2025
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 places (either to the left or to the right).Examp...
read more
C++
rotation
Reverse
Python3 Program for Check if a string can be obtained by rotating another string d places
Last Updated: 23 July 2025
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 places (either to the left or to the right).Examp...
read more
Python
rotation
Reverse
Javascript Program to Check if a string can be obtained by rotating another string d places
Last Updated: 23 July 2025
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 places (either to the left or to the right).Examp...
read more
JavaScript
rotation
Reverse
1
2
3
4
...
11
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !