Given *n* non-negative integers *a _{1}*,

*a*, …,

_{2}*a*, where each represents a point at coordinate (

_{n }*i*,

*a*).

_{i}*n*vertical lines are drawn such that the … Read More

Interview Questions asked in Google, Microsoft, Amazon

Given *n* non-negative integers *a _{1}*,

by Dhaval Dave

Given an array *A* of *N* positive integer values. A sub-array of this array is called Odd-Even sub-array if the number of odd integers in this sub-array is equal to the number of even integers … Read More

by Dhaval Dave

by Dhaval Dave

Given a set T containing a list of integers and a sum S, does a subset of T exists whose sum is equal to S.

NOTE – Subset … Read More

by Dhaval Dave

by Dhaval Dave

There are n petrol bunks arranged in circle. Each bunk is separated from the rest by a certain distance. You choose some mode of travel

by Dhaval Dave

You have a rectangular chocolate bar that consists of width x height square tiles. You can split it into two rectangular … Read More