Posts from C++

C++ Program for Diagonal Traversal of Binary Tree

By Abhishiek Bhadauria

In this post, we are going to discuss the C++ program for the diagonal traversal of a binary tree. This code will help you to understand how the diagonal traversal of a binary tree.... Read More

Rat in a maze problem in C++

By Saksham Agarwal

In this blog, we will discuss the Rat in a maze Problem in C++ and see how we can use Backtracking to get the solution. PROBLEM STATEMENT: A maze is given as an N*N binary matrix o.... Read More

How to calculate electricity bill using a C++ program

By Adit Gupta

In this tutorial, we will be learning to calculate the electricity bill. I will be doing this with the help of total number of units consumed. It is straightforward, and all you ne.... Read More

Minimum swap required to convert binary tree to binary search tree in C++

By Pratyush Gupta

In this tutorial, we will learn how to find out the minimum number of swaps required to convert a binary tree into a binary search tree (BST). We will try to understand the process.... Read More

Implementation of Cycle Sort in C++

By Rishabh Agarwal

Hi, In this tutorial we are going to learn about cycle sort and its implementation in C++. Sorting is used to rearrange sequences in some specific order, i.e. either ascending or d.... Read More

Negative array index in C++

By Arpit Jain

Hi guys, today we will discuss how to declare an array, how to enter the values in an array, and how to access the negative array index in C++. Before moving to the negative index,.... Read More

Matrix Inversion in C++

By Vishal Patil

In this tutorial, we are going to learn about the matrix inversion. Definition Assuming that there is non-singular ( i.e. determinant(A) is not equal to zero) square matrix A, then.... Read More

condition_variable::wait in C++

By Vishal Patil

Hello everyone, in this tutorial, we will learn about the condition variable in C++. Before starting this condition variable you should have prior knowledge of multithreading (if n.... Read More

Related Posts