Posts by Alok Singh

Author Biographical Info: Not available

How to add all the diagonal elements of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to add all diagonal elements of a matrix in C++ with Algorithm. In order to add all diagonal elements of a matrix, it is important to make sure .... Read More

How to find unique elements in matrix in C++

By Alok Singh

In this tutorial, we will learn how to find unique elements in a matrix in C++ with an example and algorithm. The elements which appear only one time in a matrix are unique element.... Read More

How to swap both diagonals of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to swap boh the diagonals of a matrix in C++ with an example, algorithm. The square matrix has two diagonals. one, which starts from the top-lef.... Read More

How to find transpose of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to find the transpose of a matrix in C++ and will understand the logic behind the program. Transpose of a matrix is a manipulation of a matrix s.... Read More

How to check the given matrix is magic square or not in C++

By Alok Singh

Hello, In this tutorial, we will learn how to check, whether a given matrix is a magic square matrix or not, with the algorithm and a C++ program. A magic square matrix is a square.... Read More

Convert Binary code to Gray code in C++

By Alok Singh

Gray code is a binary number system in which each successive value can only differ by one bit. In this tutorial, we will learn how to convert binary code to gray code in C++. How t.... Read More

How to find Hamming distance between two strings in c++

By Alok Singh

Hello, In this tutorial, we will learn how to find the hamming distance between two string in C++. Before that, let’s understand what is Hamming distance first. Hamming dista.... Read More

Find sum of each row and column of a matrix in C++

By Alok Singh

Hello, In this tutorial, we will learn how to calculate the sum of each row and column of a matrix in C++ programming language. Let’s take an example to understand it in a be.... Read More

Related Posts