Skip to content
Gblog Must Do Coding Questions for Product Based Companies
As the placement season is back, GeeksforGeeks is here to help you crack the interview. We have selected some most commonly asked and MUST DO… Read More
Hello Guys, I was recently interviewed by Amazon for SDE-1 position. Following is my interview experience. Round-1 (Written on InterviewStreet) 1. Rotate a N*M matrix… Read More
Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples : Attention reader! Don’t… Read More
We have discussed the following topics on the Red-Black tree in previous posts. We strongly recommend referring following post as a prerequisite of this post.Red-Black… Read More
Given inorder and level-order traversals of a Binary Tree, construct the Binary Tree. Following is an example to illustrate the problem. Attention reader! Don’t stop… Read More
I am currently in my 8th semester . I recently attended the off campus drive for SDE1 at Amazon. Here’s my journey. Round 1:- (Written)… Read More
  Given two square matrices A and B of size n x n each, find their multiplication matrix. Naive Method Following is a simple way to multiply… Read More
Phone Interview: 1) Given a 2D matrix where every row is sorted, give the index of row which has maximum number of one’s 2) Given… Read More
I have been interviewed for SDE1 by amazon. Here are the questions. 1st Round – Online Coding 1. Contiguous elements in an array whose sum… Read More
Amazon Interview (Off campus for SDE-1) Experience: 8 months Interview Process – 2 (telephonic) + 3 (f2f – Bangalore) + 1 bar raiser (telephonic) Telephonic… Read More
Newspapers and magazines often have crypt-arithmetic puzzles of the form: SEND + MORE -------- MONEY -------- The goal here is to assign each letter a… Read More
fseek() should be preferred over rewind() mainly because (A) rewind() doesn’t work for empty files (B) rewind() may fail for large files (C) In rewind,… Read More
In fopen(), the open mode “wx” is sometimes preferred “w” because. 1) Use of wx is more efficient. 2) If w is used, old contents… Read More
getc() returns EOF when (A) End of files is reached (B) When getc() fails to read a character (C) Both of the above (D) None… Read More
I recently attended Flipkart interviews(off-campus). I would like to share my experience with everyone. Round 1 : Telephonic Interview Print the left view of a… Read More
What is Object Oriented Programming? Object Oriented Programming (OOP) is a programming paradigm where the complete software operates as a bunch of objects talking to each… Read More