Implement 3D vector using dunder methods

By Karun Thannickal

In this tutorial, we will learn how to implement a 3D vector using Dunder methods in Python. First, we will look at what dunder methods are. Next, we look at the basic properties o.... Read More

Phrase Extraction in a string in Python

By Harini Madduri

In this tutorial, you are going to learn about Phrase Extraction in a string in Python. What is Phrase Extraction? Here we can take one string and select the phrase which we want t.... Read More

How to implement Iterator and Iterable Interface in Java

By Siddharth Raja

In this tutorial, we will learn about iterator and iterable interfaces in Java along with example programs. Java iterator is available since Java 1.2 collection framework. Whereas .... Read More

Find Numbers with prime frequencies greater than or equal to k in C ++

By Harsh Gupta

We are given an array of positive integers and our task is to find the numbers which appear prime number of times and whose frequency is greater than or equal to a given number .... Read More

Python Exit handlers: atexit

By Sri Vikas Prathanapu

In this tutorial, you will learn about Exit handlers in Python. Python Exit handlers: atexit module as two functions namely register() and unregister(). These are functions that ex.... Read More

Check if a string is a number in Java

By Harsh Gupta

There are several ways to check whether the entered string is a number or not in Java program. Here I have mentioned three methods to do so. METHOD-1: We can parse String to Double.... Read More

Sort elements by frequency C++ program

By Meetali Tomer

In this tutorial, we will learn to sort elements of an array in decreasing order based on the frequency of elements in C++ programming. If the frequency of any two elements is the .... Read More

Find the first repeated character in a string in Python

By Meetali Tomer

In this tutorial, we are going to learn how to find the first repeated character in Python. Problem Statement Given a string, we need to find the first repeated character in the st.... Read More