Posts from C++

Find all pairs of number whose sum is equal to a given number in C++

By Yash Shakya

This C++ program is able to find all the pairs of numbers in an array whose sum is equal to a specific number by using a nested loop and conditional statements. This problem is bas.... Read More

Top view of binary tree in C++

By Zeeshan Alam

In this tutorial, we will learn about the top view of the binary tree in c++. We will also see the code implementation to find out the top view of the binary tree. We will also see.... Read More

Bottom view of the binary tree in C++

By Zeeshan Alam

In this tutorial, we will learn about the bottom view of the binary tree in C++. We will also see the code implementation to print the bottom view of the binary tree. We will see e.... Read More

Right view of the binary tree in C++

By Zeeshan Alam

In this tutorial, we will learn about the Right view of the binary tree in C++. We will also see the code implementation to find out the right view of the binary tree. We will also.... Read More

Activity Selection Problem using Greedy method in C++

By Zeeshan Alam

In this tutorial, we will learn about the activity selection problem using the greedy approach in c++. We will also see the example to understand the concept in a better way. Activ.... Read More

Find nature of roots and actual roots of Quadratic equation in C++

By Yash Shakya

This C++ program is able to find nature or roots and the actual roots of given quadratic equations in C++ whose values are the user has entered. There is a method called quadratic .... Read More

Find the next greater number from the same set of digits in C++

By Yash Shakya

In this tutorial, we are going to find the next greater number from the same set of digits in C++. We can form many numbers by the different combination of a given set of digits in.... Read More

Switch statement in C++

By Yash Shakya

In this tutorial, we are going to learn about one of the basic statements used in C++ language that is switch statement in C++. If you are searching for syntax and a complete expla.... Read More