Card image cap
C++ Program to Generate all the Rotations of a String

We will discuss an easy approach to generate all the rotations of a string. Approach is simple we will concatenate the given string with itself and then we will be able to generate all the rotations. C++ Program to generate all the rotations of a given string is given below along with its algorithm.

Card image cap
Reverse a linked list - JavaScript

A linked list is a linear data structure where each element is a separate object. Each element (we will call it a node) of a list is comprising of two items - the data and a reference to the next node. Implementation of Reverse a linked list in JavaScript is given here.

Card image cap
C++ Program to find all the Peak Elements in Array

In this program an array is given to you and you have to find the peak elements in the array.. A peak element in the array is the element which is greater than its left and right elements. Therefore, There can be multiple peak elements in the array.

Card image cap
C++ Program to Reverse the Vowels of a String

C++ Program to reverse the vowels of a string is given below. Approach is simple, we will use two pointer approach. First we will initialize a counter at the start of the string and the other one is at the end of the string. Time complexity of the program given below is O(n) and space complexity is O(1).

Card image cap
Adding Reversed Number (ADDREV) in C++ - SPOJ
C++ Program for the adding reversed number problem of spoj is given below. The given solution is accepted by spoj judge.

PROGRAM:



Card image cap
Anti-Blot System (ABSYS) Program in C++ - Spoj
C++ Program for the anti-blot system problem of spoj is given below. The given solution is accepted by spoj judge.

PROGRAM:
 

Card image cap
Python Program to Reverse a Singly Linked List

Python program to reverse a singly linked list is given below along with the output. Linked List questions are so often to be asked in the interviews of many tech giants.

Card image cap
C++ Program to find Maximum Product Subarray

In this question an array of positive and negative integers is given to you. You have to find the maximum product of subarray. C++ complete program to get the maximum product subarray is given below.

Card image cap
C++ Program for Reverse Level Order Traversal

C++ Program for reverse level order traversal is given below. Approach is simple do the breadth first search of the binary tree and store the data value of each node in the stack. Then simply pop out the element from the stack and print out it.