Skip to content
All Medium Articles
Status: Full Time job + 6 month internship offered. It was a 4 round interview. The first round was a written round with 50 questions(20… Read More
You are given a string that represent an expression of digits and operands. E.g. 1+2*3, 1-2+4. You need to evaluate the string or the expression.… Read More
D. E. Shaw recently carried out intern procedure in our college. The whole process had three rounds. Round 1: It was CV shortlisting. Out of… Read More
Eulerian Path is a path in graph that visits every edge exactly once. Eulerian Circuit is an Eulerian Path which starts and ends on the… Read More
Given two binary trees, check if the first tree is subtree of the second one. A subtree of a tree T is a tree S… Read More
Given a radius of a circle, draw the circle without using floating point arithmetic.Following program uses a simple concept. Let the radius of the circle… Read More
Predict the output of the following C program.  C #include<stdio.h> int main() {     float x = 0.1;     if (x == 0.1)         printf("IF");     else if (x… Read More
Output of following program? #include<stdio.h> int main() {     float x = 0.1;     if ( x == 0.1 )         printf("IF");     else if (x == 0.1f)         printf("ELSE… Read More
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] and its permutations (or… Read More
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] and its permutations (or… Read More
Given two sorted arrays, such that the arrays may have some common elements. Find the sum of the maximum sum path to reach from the… Read More
I’m a 3rd year grad and amazon visited our campus. My interview had only 3 rounds. Round 1 (Online round 20 MCQ’s and 2 coding… Read More
What is an algorithm? Informally, an algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value,… Read More
Can a destructor be pure virtual in C++? Yes, it is possible to have pure virtual destructor. Pure virtual destructors are legal in standard C++… Read More
In C++, stream insertion operator “<<” is used for output and extraction operator “>>” is used for input. We must know the following things before we… Read More
Let 1 represent ‘A’, 2 represents ‘B’, etc. Given a digit sequence, count the number of possible decodings of the given digit sequence.  Examples:  Input:… Read More
Hi, Below is my interview experience for Amazon for SDE-I position. Round-1(F2F) 1.) Traverse a binary tree in a spiral manner. (zig-zag manner) 2.) Given… Read More
Engineers from core branches like Electronics, Mechanical, Chemical today are often found chasing lucrative employment in fields like IT and analytics, areas unrelated to what… Read More
Given a binary tree in which each node element contains a number. Find the maximum possible sum from one leaf node to another. The maximum sum… Read More