Posts by Himanshu Raj

Author Biographical Info: Not available

Adjacency Matrix representation of graph in C++

By Himanshu Raj

An adjacency matrix is a square matrix used to represent a finite graph. It is a way of representing a graph as a matrix of booleans (0’s and 1’s). The boolean value of.... Read More

Concept of Bit Manipulation using C++

By Himanshu Raj

Bit Manipulation is a very effective technique that is used to solve problems in optimized way. This technique is useful for competitive programming perspective. Bit Manipulation i.... Read More

Add 1 to a number represented as linked list in C++

By Himanshu Raj

In this post, we will learn how to add 1 to a number represented as linked list in C++. For example 4959 is represented as (4-> 9-> 5 -> 9->9) and adding 1 to it should.... Read More

How to sort an array using recursion in C++

By Himanshu Raj

In this post, we will learn how to sort an array using recursion in C++ programming. An array is a continuous memory block in which elements can be extracted sequentially. for exam.... Read More

How to find K-th symbol in Grammar using C++

By Himanshu Raj

In the problem, we build a table of n rows (1-indexed). We start by using writing zero within the 1st row. Now in every subsequent row, we observe the preceding row and replace eac.... Read More

Calculate Hamming Distance of two binary strings in C++

By Himanshu Raj

In this tutorial, we will learn how to calculate Hamming Distance of two binary strings in C++. Hamming distance is the number of bits positions in which two numbers differ while c.... Read More

Related Posts