Posts from C++

Check if a given Binary Tree is SumTree in C++

By Amit Raja Kalidindi

In this tutorial, we are going to learn how to check for a SumTree in a Binary Tree using C++. If the value of each node in a Binary Tree is equal to the sum of all the nodes prese.... Read More

Implementing BFS without using Queue in C++

By Amit Raja Kalidindi

In this tutorial, we are going to learn how to implement BFS(Breadth-First Search) without using a queue in C++. BFS is an algorithm used for traversing a tree or a graph in a leve.... Read More

Passing and storing lambda function as callbacks in C++

By Mohammad Mustafa

Lambda functions are one of the most exciting features which are present in C++ programming (C++11). Lambda functions(also referred to as closures) are just like normal functions w.... Read More

std::is_integral template in C++ with examples

By Nimish Dham

Fundamental data types in C++ can be broadly divided into three categories: Integral, floating point and void type. An integral data type can be one of the following: int types- sh.... Read More

Hadamard Matrix In C++

By Nimish Dham

Hadamard matrix was created as a solution to Hadamard’s maximum determinant problem which is to find a matrix with the maximum possible determinant where an element of the ma.... Read More

Code Bloating in C++ with Examples

By Mohammad Mustafa

In this tutorial, we will be learning Code Bloating in C++ with some examples. Whenever a programmer has to write a code using C++, He/She has to ensure that the code is fast and e.... Read More

Construct a Linked List using a 2D matrix in C++

By Kamlendra Pratap Singh

In this tutorial, you will learn how to construct a linked list using a double-dimensional matrix in C++. Let us have a look at the demonstration below to get the clear notion of t.... Read More

C++ program to swap two nibbles in a byte

By Aranya Banerjee

Each byte has 8 bits. Each nibble has 4 bits i.e, half the number of bits in a byte. The problem given above is to swap the two nibbles in a byte. For example, 16 in binary represe.... Read More