How to calculate Space and time efficient Binomial Coefficient in Python

By Saumitra Deshpande

In this tutorial, we are going to write a program that helps us find Space and Time-efficient of a Binomial coefficient in Python. The code should take two parameters and return th.... Read More

How to fill two instances of all numbers from 1 to n in a specific way in Python

By Saumitra Deshpande

In this tutorial, we are going to learn how we can fill two instances of all numbers from 1 to n in a specific way in Python. A number is given in this problem which is said to be .... Read More

Get the last n items from a vector in C++

By Mahak Chawla

Given a vector in C++, we have to get the last n items from it. For example, The given vector is Digits={5,8,9,11,15,20} Input: n=2 Output: 15 20 To access the last n elements we h.... Read More

Find minimum number of subsets with distinct elements in C++

By Om Avhad

Hello guys, today we will be finding the minimum number of subsets with distinct elements for a given array. Minimum number of subsets with distinct elements So to solve this, we s.... Read More

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