How to randomly select items from a list in Java

By Ekta Sharma

In this tutorial, we will learn how to randomly select items from a list in Java. A list in Java is an interface that is present in the util package and inherits the collection int.... Read More

How to track Corona Virus statistics in Python

By Abhisikta Chakraborty

Hello Everyone! Life has been hard lately. We are living through tough times. So why not do something about it? Here’s my take on ……How to track Corona Virus Stat.... Read More

How to stop a running thread in Java

By Ekta Sharma

In this tutorial, we will learn what is thread and how can we stop a running thread in Java. Threads are part of multithreading in Java that are used to execute multiple blocks of .... Read More

C++ program to find next Smaller of next Greater in an array

By Prabhnoor Singh

For every element in the array, print the next smaller of the next greater element. Also print -1 for elements who do not either the next greater or next smaller of the next greate.... Read More

Get the file id of windows file in Python

By Ranjeet V

Hello everyone, in this tutorial, we will be learning how to get the file id of windows file in Python. A file id is an identifier that uniquely identifies a file on a Volume on wi.... Read More

Raise an Exception to another Exception in Python

By Ranjeet V

In this tutorial, we will learn how to raise an exception in response to another exception in Python. This is also called exception chaining. In the below example code, we have a t.... Read More

Swap all odd and even bits in Python

By Kunal Kamble

Hello friends in this tutorial, we will learn to swap the odd and even bits of a number and write the code for it in Python. Now let’s explore how we can do it. For example: .... Read More

Check for Symmetric Binary Tree (Iterative Approach) in C++

By Amit Raja Kalidindi

In this tutorial, we are going to learn how to check if a given Binary Tree is a Symmetric Tree in C++ using an Iterative approach. If the left subtree and the right subtree of the.... Read More

Related Posts