Add prefix or suffix to each element in a list in C++

By Pritam Hande

In this tutorial, we will learn how to add prefix or suffix to each element in a list in C++. Before proceeding for implementation let’s first understand what do you mean by .... Read More

Bellman Ford algorithm in C++

By Pritam Hande

In this tutorial, we will learn about the bellman ford algorithm and its implementation in C++. Bellman-Ford algorithm: is a single source shortest path algorithm that is used to f.... Read More

Reverse case program of any alphabet in Python

By Apoorva Gupta

In this tutorial, you are going to learn the reverse case program of any alphabet in Python. For understanding this program you should know that what is a reverse case of any alpha.... Read More

Run length encoding of the string in C++

By Manisha Rathore

In this tutorial, we will learn to find run length encoding of a string in c++. For Example:  Given string: “ssshhhhhaiiiiillllll” Now, encode the length of every char.... Read More

Reverse a string using stack in C++

By Manisha Rathore

In this tutorial, we will learn to reverse a string using the stack in C++. For Example: Given string: " codespeedy" Reverse the given string. Output: " ydeepsdoc'' Simple Method: .... Read More

print the pyramidical star pattern in C++

By Manisha Rathore

In this tutorial, we will learn to print the pyramidical star pattern in C++. For Example: If n=5. The output: * * * * * * * * * * * * * * * Approach: Firstly, it is a star pattern.... Read More

Replace the element with the greatest element on the right side of an array in C++

By Manisha Rathore

In this tutorial, we will learn to replace the element with the greatest element on the right side in C++. Also, we have given an array and we have to replace the element with the .... Read More

Find a pair with the given difference in C++

By Manisha Rathore

In this tutorial, we will learn to find a pair with the given difference in C++. Also, we have given an array and a number n and our task is to get the pair whose difference is the.... Read More

Related Posts