 Posts by Amrit Pratyay

Author Biographical Info: Not available

#### Next Smaller Number to Right for each element of a list using Stack in Python

By Amrit Pratyay

In this tutorial, we will return the list of the next smaller number to right for each element of a list in Python. Problem Statement: Given a list, find the next smaller number to.... Read More

#### Count total number of set bits using Python

By Amrit Pratyay

In this tutorial, we will find the total number of set bits present in an integer with Python program. This question will show the importance of the Bit Manipulation concept. What .... Read More

#### Find an element from a list that repeat more than N/3 times in Python

By Amrit Pratyay

In this tutorial, we will find an element from a list that repeats more than N/3 times in Python. This question is asked in many interview/coding rounds. Problem Statement for find.... Read More

#### How to find a majority element in an Unsorted List in Python

By Amrit Pratyay

In this tutorial, we will see how to find a majority element from an unsorted list using Python. Here, the definition of the majority element will be defined below in the problem .... Read More

#### Find area of container with most water in Python

By Amrit Pratyay

In this tutorial, we will solve a problem in which we will find the area of the container which contains maximum water i.e, finding the maximum area of the container in Python. Pro.... Read More

#### Equal Subset Sum Partition of Array or List in Python

By Amrit Pratyay

In this article, we will see if the given array/list can be partitioned into two subsets such that both have equal sums in Python. It means we will do a partition in an array or li.... Read More

#### Kth Row of Pascal’s Triangle using Python

By Amrit Pratyay

In this lesson, we will learn and solve how to print the Kth Row of Pascal’s triangle in Python using simple operations. Start with the definition of Pascal’s Triangle. Pas.... Read More