What is Reservoir Sampling? Perform it using program in Python

By Saumitra Deshpande

In this blog, we are going to see what Reservoir Samling is and how it can be performed using Python. Reservoir sampling is a set of random algorithms meant for randomly choosingÂ.... Read More

Count set bits in an integer using Brian and Kerningham Algorithm in Python

By Harsh Gupta

In this article, we will learn Brian and Kerningham’s Algorithm to count the number of set bits of a number. Count set bits in an integer using Brian and Kerningham Algorithm.... Read More

Find elements which are present in first array and not in second in Python

By Harsh Gupta

You are given two arrays, your task is to find elements that are present in the first array and not in the second one. Input: arr1[]={1,6,88,5,9,13} arr2[]={1,6,78,9,3,2} Output: 8.... Read More

Get all the heading tags from a web page using BeautifulSoup

By Riddhi Goyal

In this tutorial, we will learn how to get all the heading tags from a web page using BeautifulSoup. You should have the basic knowledge of how to import requests to load the webpa.... Read More

Change legend position in ggplot2 using Python

By yaswanth vakkala

In this tutorial, we will learn how to change the legend position in ggplot2 using Python. Some of you reading this article might start wondering how to even use ggplot2 in python..... Read More

Vector to comma separated string in C++

By Mahak Chawla

In this tutorial, we will learn how to convert a vector to a comma-separated string in C++. Example: Vector – {‘P’,’Q’,’R’,’S’.... Read More

Change the tick frequency on the x or y axis in Matplotlib – Python

By Riddhi Goyal

In this tutorial, we will learn about how to change the tick frequency on the x or y axis in Matplotlib – Python. You should know how to create a basic plot in Matplotlib. Yo.... Read More

Negate a Boolean in Python

By Harsh Gupta

You are given a boolean in python and you have to negate it without writing tons of lines of code. Negation of a Boolean in Python Some of the methods to negate a boolean in python.... Read More

Related Posts