Posts by Vishal Kumar

Author Biographical Info:

Reversal algorithm for array rotation in C++

By Vishal Kumar

In this tutorial, we are going to learn about Reversal algorithm for array rotation in C++. In this problem, we have to rotate the array from a particular point let’s say it .... Read More

Stack in C++ Standard Template Library (STL)

By Vishal Kumar

In this tutorial, we are going to learn about some special functions of stack in STL in C++. It is nothing but a special type of container adaptor which is specifically designed to.... Read More

Sort an array in wave-form ( Wave Sort ) in C++

By Vishal Kumar

In this tutorial, we are going to learn how to sort an array in wave-form in C++ which is also known as wave sort. The basic approach will be to sort an array and then print last a.... Read More

Power of a number in C++ using Recursion

By Vishal Kumar

In this tutorial, we are going to learn how to calculate power of a number in C++ using Recursion. In recursion, we need a required recursive function to solve this problem. The fo.... Read More

Finding most occurred element in an array in C++

By Vishal Kumar

In this tutorial, we will learn how to find the most occurred element in an array in C++ using hashing which will take linear time to solve this problem. We will create an array of.... Read More

Linked list basic insertion operations in C++

By Vishal Kumar

In this tutorial, we are going to learn about all linked list basic insertion operations in C++. Linked list basic insertion operations Let us start with inserting a node at the be.... Read More

Sorting an array using C++ inbuilt function

By Vishal Kumar

In this tutorial, we will learn how to use C++ inbuilt function to sort a particular array. C++ inbuilt sort function is very fast and it takes O(n*logn) to sort an array which use.... Read More

Rotate a Matrix in C++ ( Clockwise and Anticlockwise )

By Vishal Kumar

In this tutorial, we are going to learn how to rotate a  matrix in C++ in both clockwise and anticlockwise direction by 90 degrees. Let us understand what we need to do to solve t.... Read More