Code Skiller logoCB Logo
Logo LearnLearnLogo PracticePracticeLogo HireHireLogo IDEIDE

FAANG QUESTIONS

Explore the secrets to cracking FAANG (Facebook, Amazon, Apple, Netflix, Google) interview questions. Unveil the strategies essential to tackle these coveted tech giants' challenging interview queries and land your dream job!

Finding Majority Element

Q1. You have to given an array A of size N. Find all the elements which appear more than floor(N/3) times in the given array. There is a condition that you have to do your job in O(N) time complexity and O(1) space complexity.

Question Link - ...

Read more

String With Unique Characters

Q2. Ramu has an array of strings. He want to find a string s such that it is a concatenation of sub-sequence of given array and have unique characters. A sub-sequence of an array is a set of elements that can be obtained by deleting zero or more el...

Read more

Container With Most Water

Q3. In a test Kartik gave students an array of n non-negative integers a1, a2, …, an ,where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). The task is to fin...

Read more

Array has a Circular Loop or Not??

Q4. Krishna, a nature lover, loves to explore the winding forest trails in his town. However, he often loses his way and struggles to get back to the starting point. To overcome this problem, Krishna uses an array of positive and negative integers....

Read more

Sunny Buildings

Q5. The heights of certain Buildings which lie adjacent to each other are given. Light starts falling from left side of the buildings. If there is a building of certain Height, all the buildings to the right side of it having lesser heights cannot ...

Read more

Distribute Candies

Q6. Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited a doctor.

The doctor advised Alice to only eat n / 2 of the candies she has (n is always even). Alice likes her can...

Read more

OverHappy Numbers

Q7. A 'OverHappy' number follows the following criteria :

It is always a positive integer. The integer number is replaced by the sum of the squares of its digits and this process is repeated until the sum equals 1.
 The numbers for which the loop ...

Read more

Move Zeroes

Q8. Given an array A, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.

Intuition Behind the Algorithm

The core idea behind this algorithm is the efficient reorganization of t...

Read more

Count Zeroes

Q9. Ram is very good at mathematics. He was given a number n and was told to find out number of trailing zeroes in n! in logarithmic time. Can you help him?

Intuition Behind the Algorithm

The problem presented to Ram involves finding the n...

Read more

Target Zero

Q10. Given an integer n, return an array containing n unique integers such that they add up to 0.

Intuition Behind the Algorithm

The core idea of the "Target Zero" problem is to generate a set of unique integers that sum up to zero. The ap...

Read more

Library

WEB DEVELOPMENT

FAANG QUESTIONS

Finding Majority Element

String With Unique Characters

Container With Most Water

Array has a Circular Loop or Not??

Sunny Buildings

Distribute Candies

OverHappy Numbers

Move Zeroes

Count Zeroes

Target Zero