How to combine similar characters in a Python List

By Ambuj Verma

Given a list or string, the task is to combine all similar characters of the list or string and print in a list. First, find the frequency of all characters and store in a dictiona.... Read More

How to find Median in a stream of integers (running integers) in Java

By Deepak Reddy

In this module, we are going to discuss finding the median in a stream of integers using Java. Let us first see what is a Median and how to calculate the median for given numbers. .... Read More

Implementation of Pigeonhole Sort in C++

By Saksham Agarwal

In this blog, we’ll be talking about how to implement PigeonHole Sort in C++. PigeonHole Sort Pigeon Hole algorithm is a nice algorithm to use when the number of elements is .... Read More

Convert a map to a vector in C++

By Abhishek Sharma

This is a tutorial on how to convert a map to a vector in C++. Maps are used to store key-value pairs in an ordered way. And so, to store these we need a vector of paired values. S.... Read More

How to clear/empty priority_queue of objects in C++

By Abhishek Sharma

In this tutorial, I will show you how you can clear/empty priority_queue of objects in C++. Since there is no inbuilt function in priority_queue to clear/empty it, thus we will see.... Read More

Rearrange array such that elements at even positions are greater than odd in C++

By Abhishek Sharma

Hello there! In this tutorial, we will rearrange elements of an array such that elements at even positions are greater than odd positions. e.g. int arr[]={15,12,13,18,5,9}; // for .... Read More

Colorization of images using CNN in Python

By Akarsh Shekhar

In this tutorial program, we will learn about the colorization of images using deep learning techniques using the Python programming language. So here I am going to discuss what ar.... Read More

Precision of floating point numbers in C++

By Baba Yaga

The floating-point numbers can be represented using double, float and long double in C++. Let’s see what’s the difference between using float and double? The C++ provid.... Read More