Skip to content

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

Start Your Coding Journey Now!