## Amazon Interview Experience | Set 368 (Phone and Onsite)

Phone interview Deep copy of linked list Onsite interview Question on map reduce, find if all words in a file are palindrome Design Elevator with… Read More »

## Find any one of the multiple repeating elements in read only array

Given a read only array of size ( n+1 ), find one of the multiple repeating elements in the array where the array contains integers… Read More »

## Ways of transforming one string to other by removing 0 or more characters

Given two sequences A, B, find out number of unique ways in sequence A, to form a subsequence of A that is identical to the… Read More »

## Check mirror in n-ary tree

Given two n-ary trees, the task is to check if they are mirror of each other or not. Print “Yes” if they are mirror of… Read More »

## numpy.fliplr() in Python

numpy.fliplr(array) : Flip array(entries in each column) in left-right direction, shape preserved Parameters : array : [array_like]Input array, we want to flip Return : Flipped… Read More »

## Java.io.PushbackInputStream class in Java

Pushback is used on an input stream to allow a byte to be read and then returned (i.e, “pushed back”) to the stream. The PushbackInputStream… Read More »

## std::string::find_last_not_of in C++

It searches the string for the first character that does not match any of the characters specified in its arguments. Return value : Index of… Read More »

## numpy.greater_equal() in Python

About : numpy.greater_equal(x1, x2[, out]) : checks whether x1 >= x2 or not. Parameters : x1, x2 : [array_like]Input arrays. If x1.shape != x2.shape, they… Read More »

## numpy.less_equal() in Python

About : numpy.less_equal(x1, x2[, out]) : checks whether x1 is <= x2 or not. Parameters : x1, x2 : [array_like]Input arrays. If x1.shape != x2.shape,… Read More »

## Bidirectional Iterators in C++

After going through the template definition of various STL algorithms like std::reverse, std::next_permutation and std::reverse_copy you must have found their template definition consisting of objects… Read More »

## Output Iterators in C++

After going through the template definition of various STL algorithms like std::copy, std::move, std::transform, you must have found their template definition consisting of objects of… Read More »

## 1 to n bit numbers with no consecutive 1s in binary representation.

Given a number n, our task is to find all 1 to n bit numbers with no consecutive 1s in their binary representation. Examples: Input… Read More »

## Binomial Random Variables

In this post, we’ll discuss Binomial Random Variables. Prerequisite : Random Variables A specific type of discrete random variable that counts how often a particular… Read More »

## Neighbors of a point on a circle using Bresenham’s algorithm

Given a center of a circle and its radius. our task is to find the neighbors of any point on the discrete circle. Examples: Input… Read More »

## Puzzle | (Round table coin game)

Suppose two player, player A and player B have the infinite number of coins. Now they are sitting near a perfectly round table and going… Read More »