Posts from C++

Find normal and Trace of a matrix in C++

By Alok Singh

Hello, in this tutorial, we will learn how to find normal and the trace of a matrix with a solved example, algorithm, and C++ program. Normal of a matrix is the square root of the .... Read More

Find Mean, Median and Mode of an Ungrouped data

By Alok Singh

This tutorial is for learning how to find mean, median and mode of an ungrouped data in C++. Mean, median and mode also called as measures of central tendency are numbers which rep.... Read More

How to find GCD of two numbers in C++

By Alok Singh

Hello, in this tutorial, we will understand how to find GCD of two numbers in C++ in various ways. Greatest Common Divisor (GCD) or Highest Common Factor (HCF) of two number a and .... Read More

C++ program to create a stopwatch

By Tabassum Tanveer

In this C++ program, we see the working a stopwatch. The stopwatch starts when we press any key on the keyboard and goes on increasing until any key is pressed and displays time. L.... Read More

Search an element in Linked List

By Astha Awasthi

In this C++ tutorial, we are going to discuss how to search an element in a singly Linked list in C++. What is Linked List? Linked list is a linear data structure in which elements.... Read More

Print the next greater element in C++

By Manisha Rathore

In this tutorial, we will learn how to print the next greater element C++. Then, we have an array and we have to print the next greater element of each element. For Example : Given.... Read More

Merge 3 arrays in sorted order in C++

By Sakshi Gupta

In this tutorial, we will learn how to merge 3 arrays in sorted order in C++. Below is an interesting solution based on min-heap implemented by using a priority queue. For example-.... Read More

Remove duplicate from a linked list in C++

By Sakshi Gupta

In this tutorial, we will learn how to remove duplicate from a linked list in c++. For example- 2 4 5 6 2 3 4 After removing duplicate elements: 2 4 5 6 3 How to remove duplicate f.... Read More