Tag coding interview questions

Counting Bits using Python

Counting Bits using Python

Counting Bits is a popular coding interview question. Here you will be given an integer, and you have to return an array of length (length of the integer + 1) by counting the number of 1’s in the binary representation…

Move Zeroes using Python

Move Zeroes using Python

Moving zeroes is one of the popular questions in coding interviews. Here we need to move all the 0’s in an array to the end of the array while keeping the order of non-zero elements the same. So, if you…

Ugly Number using Python

Ugly Number using Python

Ugly numbers are the numbers whose prime factors are limited to 2, 3, and 5. Finding the Ugly number is a popular question in coding interviews. Here you need to check if a number is an ugly number or not.…

Add Digits using Python

Add Digits using Python

The problem of adding digits is a popular coding interview question. Here we need to add all the digits of the integer till we get to a single-digit integer. So, if you want to know how to solve this problem using…

Power of Two using Python

Power of Two using Python

The problem of Power of Two is a popular coding interview question. Here we need to check whether the input value is the power of two or not. So, if you want to know how to solve this problem using Python, this…

Majority Element using Python

Majority Element using Python

The majority element problem is one of the popular coding interview questions. Here we need to find the element that appears more than the other element in an array. So, if you want to know how to solve this problem,…

Single Number using Python

Single Number using Python

The Single Number problem is one of the popular coding interview questions. Here you will be given an array of integers where each item appears twice except for one that we need to find. So, if you want to know how…

Pascal’s Triangle using Python

Pascal's Triangle using Python

Pascal’s Triangle is one of the popular coding interview questions. It is asked in the coding interviews by FAANG companies many times. In Pascal’s Triangle problem, we need to return the number of rows of a Pascal’s Triangle. So, if…

Plus One using Python

Plus One using Python

The Plus One problem is one of the popular coding interview questions. It is asked in the coding interviews by companies like FAANG many times. Here you need to increment the last digit of an array by one and return…