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

How to convert string to char array in C++

By Ranjeet V

In this tutorial, we will learn how to convert a string into a character array in C++. There are multiple ways to convert a string to a char array in C++. Let’s discuss some .... Read More

Finding Magnitude of a Complex Number in Python

By Sai Mukesh Reddy Gutha

Hello! In this article, We use Python to get the Magnitude of a Complex Number using a simple snippet. First, let us learn the basics of complex numbers in Python. Complex Numbers .... Read More

Implement an Interface using an Enum in Java

By Ranjeet V

Hello everyone, in this post, we will learn how to implement an interface using an Enum in Java. As we know, Enums are used to represent a group of named constants. For example, we.... Read More

beta(), betaf() and betal() functions in C++ STL

By Ranjeet V

Hello everyone, in this tutorial, we will learn about beta(), betaf() and betal() function in C++ STL. All these functions are defined in <cmath> header. These are built-in C.... Read More