Posts from C++

Program for Tower of Hanoi using stack in C++

By Nimish Dham

In this tutorial, we will learn how to solve Tower of Hanoi using stack in C++. Let’s first understand the problem and it’s rules. Tower of Hanoi is a very famous puzzl.... Read More

Euler’s Factorization method in C++

By Arpit Jain

Hi guys, today we will learn about Euler’s Factorization Method in C++. As the name suggests, Euler’s Factorization method is a factorizing technique earlier proposed b.... Read More

Visibility Modes in C++

By Vishal Patil

In this tutorial, we will learn about the visibilities mode in C++. The visibility modes come in a picture when there is the inheritance of the classes (learn Inheritance in C++). .... Read More

Check whether a Matrix is a Latin Square or not in C++

By Sumanth

In this tutorial, we will see how to determine if a given matrix is a Latin square or not, let’s learn how to easily check is a matrix is a Latin square in C++. Determining i.... Read More

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