Posts by Vishal Kumar

Author Biographical Info: Not available

Write a program to print Floyd’s triangle in C++

By Vishal Kumar

In this tutorial, we are going to learn how to write a program to print Floyd’s triangle in C++. This is a printing pattern challenge problem which we are going to solve usin.... Read More

Edit Distance problem (dynamic programming) in C++

By Vishal Kumar

In this problem, we are going to learn how to change a string 1 to string 2 in C++  which is called Edit distance problem using the following operations. Insert Remove Replace Usi.... Read More

How to detect special character in a string in C++

By Vishal Kumar

In this post, we are going to learn about how to detect special character in a string in C++. All characters except alphabets and digits are regarded as special characters in C++.¬.... Read More

Finding Minimum Cost Path in a 2-D Matrix in C++

By Vishal Kumar

In this tutorial, we are going to solve a particular problem which is how to find Minimum Cost Path in a 2-D Matrix in C++. We are going to use dynamic programming to solve this pr.... Read More

Find the smallest missing number in an array in C++

By Vishal Kumar

In this tutorial, we are going to learn how to find the smallest missing number in an array in C++. We can solve this problem either by using a linear search or by using binary sea.... Read More

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