Posts from C++

Sorting ugly numbers in an array at their relative positions in C++

By Shubham Loya

Today, in this tutorial, we will get to know how to sort the ugly number present in an array of many numbers and some of which aren’t even ugly numbers, in C++. Ugly numbers .... Read More

C++ Program to Encrypt and Decrypt a String

By Vivek Kumar Jaiswal

Hello everyone! Let’s discuss the string encryption and decryption and implement it in C++. Encrypting a string basically means changing it from one form to another i.e plain.... Read More

How to make diamond shape pattern in C++

By Alok Singh

In this tutorial, we will learn how to make a diamond shape pattern by asterisks sign in the C++ language. In this task, we will get a number n and we have to print the diamond sha.... Read More

How to make a C++ program crash

By Ramneeq Sodhi

In this article, we are going to learn about what are C++ crashes and what is the reason behind the crashes. While writing codes we come across certain crashes in C++. Many a time,.... Read More

negative _binomial_distribution in C++ with examples

By Ramneeq Sodhi

In this article, we are going to learn what is negative binomial distribution and how we can implement it in C++ Bernoulli Trials are experiments in which there are two possible ou.... Read More

How to rearrange positive and negative numbers with constant extra space in an array using C++

By Aakash Puri

In this tutorial, you will learn how to arrange positive and negative numbers within an array with constant extra space in C++. We are going to arrange the array in such a way that.... Read More

Check whether a binary tree is a full binary tree in C++

By Adit Gupta

In this tutorial, I will show how to check whether a given binary tree is a full binary tree or not in C++. To implement this, we need to have a clear understanding of how to use t.... Read More

Reverse Level Order Traversal of Binary Tree in C++

By Aniruddha Ghosh

In this article, we will learn how to reverse the level order traversal of binary tree in C++. The level order traversal is quite easy and the trick is to maintain a queue and prin.... Read More