Posts by Sakshi Gupta

Author Biographical Info: Not available

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

Create a Simple calculator in C++

By Sakshi Gupta

In this tutorial, we will see the basic implementation of a simple calculator in C++. It includes all the basic operations: Addition(+) Subtraction(-) Multiplication(*) Division(/).... Read More

How to print pascal’s triangle in C++

By Sakshi Gupta

In this tutorial, we will learn how to print pascal’s triangle in c++. A Pascal’s triangle is a simply triangular array of binomial coefficients. Each number can be rep.... Read More

Matrix chain multiplication in C++

By Sakshi Gupta

Given a sequence of matrixes, we have to decide the order of multiplication of matrices which would require the minimum cost. We don’t need to find the multiplication result .... Read More

Coin change problem in C++

By Sakshi Gupta

In our problem set, we are given S supply of coins {s1,s2,s3….sn}. We have to make a change for N rupees. We have to count the number of ways in which we can make the change..... Read More

Rotation of a square matrix by 90 degrees in c++

By Sakshi Gupta

In this tutorial, we will learn how to rotate a square matrix by 90 degrees in c++. There are various ways to rotate a square matrix by 90 degrees(We will learn other ways in other.... Read More

Merge sort in c++ (A Divide and Conquer algorithm)

By Sakshi Gupta

In this tutorial, we will learn another technique of sorting i.e Merge sort. First, we will learn what is the merge sort and what is how does it uses the divide and conquer algorit.... Read More