Posts from C++

C++ Program to check if a number is Multiply Perfect Number

By Ranjeet V

In this post, we will implement a C++ program to check if a number is Multiply Perfect Number. What’s a Multiply Perfect Number? First, let us understand what is a Multiply-P.... Read More

Tree Rerooting Technique in C++

By Deepanshu

Now let’s learn how to use Tree Rerooting Technique in C++. Problem description Consider an unweighted tree with N node and N-1 edges and a positive number D, Find how many d.... Read More

Calculate Money in Bank- A Greedy algorithm Problem in C++

By Deepanshu

This problem is about a greedy algorithm we will going to solve this problem and will learn about the concepts and algorithm used and then will see its implementation in C++. Probl.... Read More

How to convert string to char array in C++

By Ranjeet V

In this tutorial, we will learn how to convert a string into a character array in C++. There are multiple ways to convert a string to a char array in C++. Let’s discuss some .... Read More

beta(), betaf() and betal() functions in C++ STL

By Ranjeet V

Hello everyone, in this tutorial, we will learn about beta(), betaf() and betal() function in C++ STL. All these functions are defined in <cmath> header. These are built-in C.... Read More

C++ program to find the median array for Binary tree

By Abinash Reddy

In this article, we will learn how to find the median array for a Binary tree in C++. A median array is an array that formed with help of Inorder, Preorder, Postorder traversal of .... Read More

Long jumps – Dp problem in C++

By Deepanshu

Now we will be going to solve a dynamic programming problem Long jumps in C++. Problem description A person is currently standing on point 0 in the 1-D array and jumps to reach poi.... Read More

Special Items – Array problem in C++

By Deepanshu

Now let’s solve the Special item array problem Problem description There are several special items and the special item can be split to form M normal items. Both types of ite.... Read More