Kth order-Segment tree problem in C++

By Deepanshu

Now we will be going to solve the segment tree question in C++. Problem description Given n integers, and an array an of n integers, and q queries. The queries are of three types. .... Read More

Hollow Diamond Pattern Program in C++

By Isha Prasad

Hello Learners, in this article, we are going to learn how to print a Hollow Diamond Pattern using C++. This pattern is possible and easy to understand in C++. let us understand fi.... Read More

std::mismatch() in C++ with examples

By Ranjeet V

In this tutorial, we are going to learn about a useful function of C++ STL that is the mismatch() function. This function is defined in the ‘algorithm’ header in C++. T.... Read More

Difference Between json.dump() and json.dumps() in Python

By Ranjeet V

In this Python tutorial, we will discuss the difference between json.dump() and json.dumps(). As we know, JSON stands for JavaScript Object Notation. It is a lightweight data forma.... Read More

Operations on Set Objects in Python with Examples

By Sai Mukesh Reddy Gutha

Hi Learner! In this article, we are going to learn to find the common characters of two strings using sets in Python. Let us see how simple it can be to find the common characters.... Read More

C++ Program to check if a number is Multiply Perfect Number

By Ranjeet V

In this post, we will implement a C++ program to check if a number is Multiply Perfect Number. What’s a Multiply Perfect Number? First, let us understand what is a Multiply-P.... Read More

Tree Rerooting Technique in C++

By Deepanshu

Now let’s learn how to use Tree Rerooting Technique in C++. Problem description Consider an unweighted tree with N node and N-1 edges and a positive number D, Find how many d.... Read More

Calculate Money in Bank- A Greedy algorithm Problem in C++

By Deepanshu

This problem is about a greedy algorithm we will going to solve this problem and will learn about the concepts and algorithm used and then will see its implementation in C++. Probl.... Read More