# Tag Archives: Reverse

Given a string str, the task is to reverse all the individual words. Examples:  Input: str = “Hello World” Output: olleH dlroW Input: str = “Geeksâ€¦ Read More
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â€¦ Read More
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â€¦ Read More
Given a Perfect Binary Tree, the task is to reverse the alternate level nodes of the binary tree.Examples: Input: a / \ b c /â€¦ Read More
Using STL library it is very easy to perform certain basic operations on array like Sorting, searching, sum of elements, finding minimum and maximum elementâ€¦ Read More
Given a string array str[], the task is to find the first string from the given array whose reverse is also present in the sameâ€¦ Read More
Given an integer N, the task is to find the count of all N digit numbers such that num + Rev(num) = 10N – 1Examples: â€¦ Read More
Given an array arr[] of binary strings, the task is to calculate the bitwise OR of all of these strings and print the resultant string.Examples:  â€¦ Read More
Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack. Examples:  Input :â€¦ Read More
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â€¦ Read More
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:â€¦ Read More
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â€¦ Read More
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
Given an array of string literals, reverse the array. Examples: Input : arr[] = {"Coding", "Never", "Fail", "Me"} Output : arr[] = {"Me", "Fail", "Never",â€¦ Read More
Given a string str, print reverse all words except the first and last words. Examples:  Input : Hi how are you geeks Output : Hiâ€¦ Read More