Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.2K+ articles
Misc
7.7K+ 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
303+ articles
Reverse
161+ posts
Recent Articles
Popular Articles
Reverse bytes of a Hexadecimal Number
Last Updated: 16 March 2023
Given an unsigned integer N. The task is to reverse all bytes of N without using a temporary variable and print the reversed number.Examples:Input: N = 0xaabbccddOutput: 0...
read more
Mathematical
DSA
Reverse
Bit Algorithms
Numbers
Reverse individual words with O(1) extra space
Last Updated: 12 July 2025
Given a string str, the task is to reverse all the individual words.Examples:Input: str = "Hello World"Output: olleH dlroWInput: str = "Geeks for Geeks"Output: skeeG rof s...
read more
DSA
Reverse
Add two numbers represented by Linked List without any extra space
Last Updated: 12 July 2025
Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of two input numbers. Exp...
read more
Linked List
DSA
Reverse
Reverse alternate k characters in a string
Last Updated: 16 December 2022
Given a string str and an integer k, the task is to reverse alternate k characters of the given string. If characters present are less than k, leave them as it is.Examples...
read more
Strings
C++ Programs
DSA
Reverse
Count of all N digit numbers such that num + Rev(num) = 10^N - 1
Last Updated: 24 June 2022
Given an integer N, the task is to find the count of all N digit numbers such that num + Rev(num) = 10N - 1Examples:Input: N = 2Output: 9All possible numbers are18 + 81 = ...
read more
DSA
Reverse
number-theory
Reverse Middle X Characters
Last Updated: 19 October 2023
Given a string str and an integer X. The task is to reverse the middle X characters of the given string and then print the modified string. Note that len(str) - X is alway...
read more
Strings
Technical Scripter
C++ Programs
DSA
Reverse
Program to copy the contents of one array into another in the reverse order
Last Updated: 11 July 2025
Given an array, the task is to copy these array elements into another array in reverse array.Examples:Input: array: 1 2 3 4 5 Output: 5 4 3 2 1 Input: array: 10 20 30 40 5...
read more
C Programs
C Language
Reverse
Arrays
Add index to characters and reverse the string
Last Updated: 07 August 2022
Given a string str, the task is to encrypt and reverse the string. The string is encrypted by adding every character of the string with it's index in the string i.e. if ch...
read more
Technical Scripter 2018
DSA
Reverse
Substring Reverse Pattern
Last Updated: 12 September 2022
Given string str, the task is to print the pattern given in the examples below:Examples:Input: str = "geeks"Output:geeks*kee***e**The reverse of "geeks" is "skeeg"Replace ...
read more
Strings
Technical Scripter
C Programs
DSA
Reverse
pattern-printing
substring
Reverse middle words of a string
Last Updated: 12 September 2022
Given a string str, print reverse all words except the first and last words.Examples:Input : Hi how are you geeks Output : Hi woh era uoy geeksInput : I am fineOutput : ...
read more
Strings
C++ Programs
DSA
Reverse
cpp-string
Program to find first N Iccanobif Numbers
Last Updated: 11 July 2025
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 obtained by addition o...
read more
Misc
Mathematical
DSA
Fibonacci
number-digits
Reverse
number-theory
Find a palindromic string B such that given String A is a subsequence of B
Last Updated: 07 December 2022
Given a stringA. Find a stringB, where B is a palindrome and A is a subsequence of B.A subsequence of a string is a string that can be derived from it by deleting some (no...
read more
DSA
palindrome
Reverse
Clone a stack without extra space
Last Updated: 11 July 2025
Given a source stack, copy the contents of the source stack to the destination stack maintaining the same order without using extra space.Examples:Input: st = [ 3, 2, 1 ]O...
read more
Linked List
Stack
Technical Scripter
Picked
Technical Scripter 2018
DSA
Reverse
StringBuilder reverse() in Java with Examples
Last Updated: 11 December 2022
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 the reverse of ...
read more
Java
Reverse
Java-Functions
Java-StringBuilder
Print Doubly Linked list in Reverse Order
Last Updated: 11 January 2023
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 = 1 = 2 = 3 = 4 = 5Output:...
read more
Misc
Linked List
DSA
Reverse
doubly linked list
1
...
8
9
10
11