Posts from C++

How to find unique elements in matrix in C++

By Alok Singh

In this tutorial, we will learn how to find unique elements in a matrix in C++ with an example and algorithm. The elements which appear only one time in a matrix are unique element.... Read More

Cutting a Rod problem in C++

By Zeeshan Alam

In this tutorial, we will learn about cutting a rod problem in C++. We will also see the use of dynamic programming to solve the cutting of the rod problem. We will also see exampl.... Read More

Longest Increasing Subsequence in C++

By Zeeshan Alam

In this tutorial, we will learn about how to find the longest increasing subsequence in C++ using dynamic programming. We will also see the code implementation in C++. We will also.... Read More

How to print duplicate characters from a given string in C++

By Yash Shakya

In this C++ program, we are going to print duplicate characters from a given string with simple string commands and nested loop. This problem is based on the application of charact.... Read More

Level of a Node in a Binary Tree in C++

By Zeeshan Alam

In this tutorial, we will learn about how to find the level of the node in a binary tree. We will also see the code implementation in c++. We will also see examples to understand t.... 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

Related Posts