Posts by Alok Singh

Author Biographical Info: Not available

#### How to make diamond shape pattern in C++

By Alok Singh

In this tutorial, we will learn how to make a diamond shape pattern by asterisks sign in the C++ language. In this task, we will get a number n and we have to print the diamond sha.... Read More

#### Print Pascal’s triangle of Nth row in C++

By Alok Singh

In this tutorial, we will learn how to print Pascal’s triangle in C++ with an algorithm. Pascal’s triangle is a 2-D array (2-D triangular array) of binomial coefficient.... Read More

#### Move all the zeros to the end of array in C++

By Alok Singh

In this problem, we will get an array of size ‘n’. we need to move all the zeros to the end of the array without changing the order of non-zero numbers. Let’s tak.... Read More

#### Perform right rotation on a matrix by k times in C++

By Alok Singh

In this tutorial, we will learn how to perform right rotation on a matrix by k times in C++ with a solved example, algorithm. What is the meaning of “perform right rotation o.... Read More

#### Merge two linked lists in C++

By Alok Singh

In this tutorial, we will learn how to merge two linked lists with algorithm and C++ program. Merging of two linked lists is the same as the concatenation of two strings. But this .... Read More

#### How to check Involutory Matrix in C++

By Alok Singh

Hello, in this tutorial, we will learn how to check whether a matrix is an involuntary matrix or not in C++ with an example, Algorithm, and a program. A matrix is said to be an inv.... Read More

#### Check whether a matrix is Markov matrix in C++

By Alok Singh

In this tutorial, we will learn how to check whether a matrix is a Markov matrix or not in C++ with Example, Algorithm, and a program. Markov matrix is a matrix in which the sum of.... Read More

#### Replace each element of array by multiplication of previous and next in C++

By Alok Singh

From the title of the problem, it is clear that for a given array, we have to Replace each element by multiplication of previous and next element. Means for each index number i, .... Read More