Python is a widely used general-purpose, high-level programming language. It was initially designed by Guido van Rossum in 1991 and developed by Python Software Foundation.… Read More »

We have seen different ways of performing postorder traversal on Binary Trees. Post Order Traversal. Iterative Postorder Traversal using Two Stacks. Iterative Postorder Traversal using… Read More »

Given a Binary Search Tree and an integer sum, the task is to find all the pairs from the tree whose sum is equal to… Read More »

Given a binary tree, target node X and a string patt. The task is to find the last node of the binary tree following the… Read More »

Behold, Marvel Fans. Avengers are out there to save the Multiverse, so are we, ready to do whatever it takes to support them. In this… Read More »

Node.js Server Node.js is a javascript framework for writing Server-side applications. A Node.js server provides the mechanisms for connecting to a service and sending/receiving data.… Read More »

Given a connected graph with N vertices and M edges. The task is to find the shortest path from source to the destination vertex such… Read More »

Given an array arr[] of N integers and an integer X. We can choose any sub-array and multiply all its element by X. After multiplication,… Read More »

Given a string str consisting of lower case alphabets only and an integer K. The task is to find the minimum cost to modify the… Read More »

As per Google’s official career page, there are two types of interviews, Phone/Hangout interviews and Onsite Interviews. Below is an excerpt for their official page.… Read More »

Phaser’s primary purpose is to enable synchronization of threads that represent one or more phases of activity. It lets us define a synchronization object that… Read More »

From a point in the interior of an equilateral triangle, the perpendicular distance of the sides are 2√3, 3√3 and 4√3. Find the perimeter of… Read More »

Round 1(DSA, Design, Java) 1. Write a code to find kth largest element in an array. Interviewer was interested in the most optimal solution straight… Read More »

Given width and height of N rectangles. The task is to find the minimum number of rectangles left after inserting one into another. Note :… Read More »

I started with Amazon Interviews from Jan’18 and ended in March’19. This is not because there was delay from Amazon’s recruiter side but it was… Read More »

X-Macros are based on the property of nested macros and the ability to define macros inside other macros. X-Macros are very powerful pre-processor technique in… Read More »

Round 1: There were around 30 to 40 people in this round, all of us were given a question paper and sheets . There were… Read More »

Given a string S. The task is to count the non-overlapping pairs of palindromic sub-strings S1 and S2 such that the strings should be S1[L1…R1]… Read More »

So far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the… Read More »

Given an array arr[] containing the permutation of first N natural numbers and an integer M ≤ N. The task is to find the number… Read More »