Posts from C++

Decrementing an iterator in C++

By Amit Raja Kalidindi

In this tutorial, we are going to learn how to decrement an iterator in C++. These are used to traverse through the elements of the containers. All containers in C++ do not support.... Read More

How to check if two given sets are disjoint in C++

By Amit Raja Kalidindi

In this tutorial, we are going to learn how to check if two sets are disjoint in C++. Two sets are disjoint if the sets do not have any common elements. Naive Approach Let us consi.... Read More

Implementation of Bitonic Sort in C++

By Amrita Sony

Hello, Learners today we will learn Bitonic Sort and implement it in C++ programming. The Bitonic sort is a sorting algorithm whose time complexity is O(n log2n). Unlike Merge sort.... Read More

C++ program to find nth ugly number

By Shubham Loya

Today, in this tutorial, we are going to see how we can get the value of the nth ugly number in C++. Ugly numbers are the numbers which haveĀ  2,3 or 5 as their only prime factors .... Read More

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

Related Posts