Posts by Alok Singh
Author Biographical Info: Not available
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
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
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
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
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
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
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
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