Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare
4.0

based on 1.6k Reviews

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Microsoft Corporation SDE (Software Development Engineer) Interview Questions, Process, and Tips

Updated 1 Nov 2022

Top Microsoft Corporation SDE (Software Development Engineer) Interview Questions and Answers

  • Q1. Given a binary search tree , print the path which has the sum equal to k and has minimum hops. i.e if there are multiple paths with the sum equal to k then print the path ...read more
  • Q2. Given two linked lists both represent a number . Create a linked list that contains its sum
  • Q3. Find and element in a rotated array

Microsoft Corporation SDE (Software Development Engineer) Interview Experiences

4 interviews found

I was interviewed in May 2022.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. Question was related to the tree
  • Q2. Searching time of bst
  • Ans. 

    BST search time is O(log n) on average, but can be O(n) in worst case.

    • BST search time depends on the height of the tree

    • On average, height is log base 2 of n

    • Worst case is when the tree is unbalanced and height is n

    • Example: searching for a value in a balanced BST with 1024 nodes takes at most 10 comparisons

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident as the interviewer was cool and help you at the point where you completely stuck.
They asked me 1 coding of question of tree and rest they put the theoretical questions related to the tree only.

Skills evaluated in this interview

I applied via Company Website and was interviewed before Aug 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Distributed systems and concurrency. Coding questions on data structures, dynamic programming. Machine learning concepts and past projects.

Interview Preparation Tips

Interview preparation tips for other job seekers - Revise Leetcode, ML concepts, resume projects, systems and ML design.

SDE (Software Development Engineer) Interview Questions Asked at Other Companies

asked in Carwale
Q1. A string is given consisting of lowercase alphabets. Write a func ... read more
asked in Carwale
Q2. Given a balance and 100 coins;out of which,one is heavier. Find m ... read more
Q3. Given a binary search tree , print the path which has the sum equ ... read more
asked in Housing.com
Q4. Given a square area of 1024x1024 on a map with some flats (housin ... read more
asked in Carwale
Q5. Delete nodes in linkedlist which have a greater value on right si ... read more

Interview Questionnaire 

5 Questions

  • Q1. Find and element in a rotated array
  • Ans. 

    Finding an element in a rotated array

    • Identify the pivot point where the array is rotated

    • Divide the array into two sub-arrays based on the pivot point

    • Perform binary search on the appropriate sub-array to find the element

    • Handle edge cases like when the element is at the pivot point

  • Answered by AI
  • Q2. Given two linked lists both represent a number . Create a linked list that contains its sum
  • Ans. 

    Create a linked list that contains the sum of two given linked lists representing numbers.

    • Traverse both linked lists simultaneously and add the corresponding nodes' values. If the sum is greater than 9, carry over the 1 to the next node.

    • If one linked list is longer than the other, add the remaining nodes to the sum.

    • Create a new linked list with the sum in reverse order.

  • Answered by AI
  • Q3. You have to design a Text Editor like notepad . You are concerned about the following functionalities - insert, delete, and search.You can assume the other functionalities of the text editor like save , di...
  • Q4. He asked me about the question given to me in the previous round i.e Text Editor . I gave him a brief explanation on my approach . He then gave me another question based on Text Editor. He asked me how cou...
  • Q5. Given a binary search tree , print the path which has the sum equal to k and has minimum hops. i.e if there are multiple paths with the sum equal to k then print the path with minimum number of nodes
  • Ans. 

    Given a binary search tree, print the path with sum k and minimum hops.

    • Traverse the tree using DFS and keep track of the current path and its sum.

    • If the current sum equals k, compare the current path with the minimum path found so far.

    • If the current sum is greater than k, backtrack to the previous node and continue traversal.

    • If the current sum is less than k, continue traversal.

    • Return the minimum path found.

    • Time comple...

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The MCQs were based on C.C++,Java and some Operating System questions. Around 200+ from our college sat for this round.

Tips: Solve C C++ output related questions.
Difficulty level : Medium
Duration: 30 minutes
Total Questions: 15

Round: Test
Experience: After the first round around 100 (consisting of the internship students as well) students were shortlisted for the second round
Everyone got different sets of questions. The questions I got were :
Given two arrays were digits of one array represent a number,maximize the number by replacing it with elements of second array.
eg:
arr={3,1,4,5,6}
rep={1,9,5,2,3}

after replacement
arr={9,5,4,5,6}
one digit of rep can be used to replace only once.
For this almost everyone who got this question used a brute force method.But I had used a different approach .I constructed a max heap of rep array.And ran a loop checking if the max element of rep was greater than the element in arr and then replaced it in arr and deleted the same from the maxheap.

Given a matrix ,where each cell represents a value of strength.The value could be positive negative or zero. At each cell the strength value is added.You have to reach from point (0,0) to point (m-1,n-1) if at any point the strength becomes zero or negative then you cant proceed further.Find the minimum strength required before starting to reach the end of the matrix.
eg . {{ 1,-3,0},
{-2,1,-1}} Ans: 2 ( (2+1+(-2)+1+(-1)=1 path taken )
I gave a DP solution but was unable to pass a few test cases in this question.
Tips: Practice problems on Data Structures like Trees, Arrays , Heaps , Linked Lists ,etc
Duration: 90 minutes
Total Questions: 2

Round: Test
Experience: Around 30 students consisting of students from other colleges as well were called On-site. This was a written round.Everyone was given around 45 mins and 1 question.
Given the root to a binary tree, a value n and k.Find the sum of nodes at distance k from node with value n.
This is similar to this question on geeks ->-----/
I was able to do this quite quickly :D I even explained my answer to the HR and he asked me to write different types of test cases to exhaustively check if my code works on all of them.
After this round around 14 people were shortlisted.

Round: Technical Interview
Experience: These were fairly easy questions . I knew the solutions and explained it to the interviewer.He asked a few questions on them , seemed satisfied.Asked me if I had any questions for him . So I asked him about the different technologies that a new SDE would work on and things like that. I had a pretty good discussion with him he told me many things from his end too.
I made it to the next round then :D
Tips: Well one thing I realized after giving interviews was when they ask the candidate for any questions then you should always ask something , shows that you are interested.

Round: Technical Interview
Experience: He told me to take my time and give the solution. I gave him a solution of considering the text as a linked list of words . Where each node in the linked list contained the word string and an index .And for every node in the linked list I will have Trie structure. I used trie for efficient search.What I suggested was that I use the trie whenever the user enters a word and insert it into the trie and the leaf of that word will contain the index of that word plus the pointer to that node in the linked list . If suppose the trie already has the word then i increase the word count in the leaf and the leaf will contain a vector that has the list of indexes where the word has occurred and the list of pointers where the word is present in the list.I wrote the code and explained how it can handle all corner cases . We discussed the the solution and he asked me certain questions on different test cases . My approach handled them well. He seemed satisfied . He added to the question that the search query could contain words or phrases . So my use of indexes could handle the phrase search :) . I also suggested that instead of Trie data structure we could use a Ternary Search Tree as that would be more space efficient.
Tips: Practice Design questions too besides Data Structure problems

Round: Other Interview
Experience: This was a HR+Technical Interview

The interviewer was quite experienced and very pleasant. He asked me how my previous rounds went.He was going through my performance review from the previous rounds. He took a glance though my CV and asked me about the projects I did. He saw that I had interned at IITB so he asked me a lot on that project. He also asked me some basic HR questions like Why should Microsoft hire you ? Where do you see yourself in the next 5 years ?.He was very impressed with my academic record and my AIEEE rank. Asked me how I handled my 12th board exams and entrances.He made it very comfortable and was almost chatting and getting to know about me.
Question 1:
Thankfully I was just going through this question just before this round :D . I suggested the solution using Trie and Min Heap.
Similar to -> -----/
Question 2 :
First I gave him the brute force approach . Similar to ->-----/
But I knew it wasnt using the fact that we have a Binary Search tree . So the interviewer gave me some hints - like what is main criteria of a BST . I immediately figured out that the minimum path will always be on the right side of the node because it has the larger value. I told him the solution he seemed satisfied.
He then asked if I has any questions for him . So I asked him about where I can improve myself , he said I didnt need any improvement I am doing very well and that I should jus keep doing what I am doing :D That certainly made my day :) I asked a couple more questions about Microsoft and then left.

Finally after a week the results came I received the mail that I had been shortlisted for a Full Time Position :D
Tips: Have a good grasp on Data Structures. Solve as many problems possible from Geeks4Geeks
Be confident in the interview . Have a smiling face and be adaptable to the question . The interviewer can anytime change or twist the question just to confuse you.
The interviewers are very helpful , if you feel stuck communicate with them ..explain your approach they will give you hints.
When the interviewer gives the question listen to it carefully do not immediately rush to writing the code .. ask him about the different criteria and restrictions pertaining to the question.
Check your code with all possible test cases and list them.
Lastly , even if you arent able to get the right solution then just explain your approach . Recruiters analyse how you tackle the problem not necessary that you have to have the accurate solution.


General Tips: Be confident in the interview . Have a smiling face and be adaptable to the question . The interviewer can anytime change or twist the question just to confuse you.
The interviewers are very helpful , if you feel stuck communicate with them ..explain your approach they will give you hints.
When the interviewer gives the question listen to it carefully do not immediately rush to writing the code .. ask him about the different criteria and restrictions pertaining to the question.
Lastly , hard work goes a long way ! Never loose hope. I got placed in Oracle Applications and Microsoft after being rejected by almost 6 companies :) And believe me those interviews also taught me a lot .
Learn from your failures and don't lose hope :)
Skills: Object Oriented Programming (OOP) Basics, Basic C/C++, C Programming, Algorithms And Data Structures
College Name: NIT Bhopal
Motivation: Microsoft is dream company for any Computer Science Engineer. And I am glad I got this opportunity.

Skills evaluated in this interview

What people are saying about Microsoft Corporation

View All
intensedrum
Verified Icon
23h
works at
CarDekho
Btao btao jaldi!
Who will win the AI race ?
Deepseek
0%
OpenAI
0%
Google
0%
Microsoft
0%
Perplexity
0%
16 participants . expiring in 3d
Got a question about Microsoft Corporation?
Ask anonymously on communities.

SDE (Software Development Engineer) interview

user image E-Learning Bridge

posted on 3 Dec 2021

Microsoft Corporation interview questions for designations

 SDE

 (6)

 Software Development Engineer

 (11)

 SDE Intern

 (6)

 SDE-2

 (5)

 Software Development Engineer II

 (6)

 Software Development Engineer 1

 (1)

 Software Development Engineer Intern

 (1)

 Software Engineer

 (70)

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Medium level coding question on leetcode and codechef are good to prepare to clear the test.

Round 2 - Technical 

(2 Questions)

  • Q1. You need to have good knowledge on all the core subjects from CSE Department and coding
  • Q2. Database questions, java opps cocncepts, coding question based on arrays.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare coding well , leecode medium level questions are good enough and knowledge on core subjects.
Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
No response

I applied via Campus Placement and was interviewed in Jan 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Fully logical we want to strong in percentage and stream

Round 3 - Coding Test 

We want to strong in one coding language and also u want to strong enough in DS algo

Interview Preparation Tips

Interview preparation tips for other job seekers - This is an one of the good company where u can learn and do anything only they are see ur performance
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Jul 2022. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. 9 questions were there including sql, coding ,and few mcqs
Round 3 - Technical 

(1 Question)

  • Q1. One questions based on Convex hull

Interview Preparation Tips

Interview preparation tips for other job seekers - Practice DSA and try to add 1 or 2 good projects in resume

I applied via Campus Placement and was interviewed in Aug 2022. There were 2 interview rounds.

Round 1 - Coding Test 

Simple or say standard coding questions of easy to medium level

Round 2 - One-on-one 

(2 Questions)

  • Q1. Standard dsa question was asked .the question was of easy to medium level leetcode.
  • Q2. Computer science fundamental dbms, computer network, operating sysytem basic system design

Interview Preparation Tips

Interview preparation tips for other job seekers - practice 3 to 5 leetcode questions on daily basis.
Be consistent through out your placement preparation.

I applied via Company Website and was interviewed in Jun 2022. There were 4 interview rounds.

Round 1 - One-on-one 

(1 Question)

  • Q1. What technologies did I work on and some basic questions related to it.
Round 2 - One-on-one 

(1 Question)

  • Q1. Technology-related questions and previous project-related questions.
Round 3 - One-on-one 

(1 Question)

  • Q1. This was the manager round he asked me previous project-related questions like application architecture.
Round 4 - HR 

(1 Question)

  • Q1. Basic questions like relocation and compensation.

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and be prepared for questions related on your previous projects and latest technologies with working POC's

I applied via Approached by Company and was interviewed in May 2022. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Properly align and format text in your resume. A recruiter will have to spend more time reading poorly aligned text, leading to high chances of rejection.
View all tips
Round 2 - HR 

(2 Questions)

  • Q1. About years of experience
  • Q2. Current role and expertise
  • Ans. 

    I am currently working as a Software Development Engineer with expertise in web development and cloud computing.

    • Proficient in programming languages like Java, Python, and JavaScript

    • Experience in developing and maintaining web applications using frameworks like React and Angular

    • Knowledge of cloud computing platforms such as AWS and Azure

    • Familiarity with database management systems like MySQL and MongoDB

    • Strong problem-so

  • Answered by AI
Round 3 - One-on-one 

(3 Questions)

  • Q1. Java object oriented questions
  • Q2. Data structures related questions
  • Q3. Given small coding problem on duplicate string

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare leetcode problems mostly, data structures as much as possible hr was very Frank later this round she given preparation time but somehow I got rejected recently I got call again from Google recruiter saying they shortlisted based on my LinkedIn profile so keep good profile that also helps.

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation SDE (Software Development Engineer) interview?
Microsoft Corporation interview process usually has 2 rounds. The most common rounds in the Microsoft Corporation interview process are Technical and Resume Shortlist.
What are the top questions asked in Microsoft Corporation SDE (Software Development Engineer) interview?

Some of the top questions asked at the Microsoft Corporation SDE (Software Development Engineer) interview -

  1. Given a binary search tree , print the path which has the sum equal to k and ha...read more
  2. Given two linked lists both represent a number . Create a linked list that cont...read more
  3. Find and element in a rotated ar...read more

Tell us how to improve this page.

Microsoft Corporation SDE (Software Development Engineer) Salary
based on 222 salaries
₹16.2 L/yr - ₹64.1 L/yr
42% more than the average SDE (Software Development Engineer) Salary in India
View more details

Microsoft Corporation SDE (Software Development Engineer) Reviews and Ratings

based on 11 reviews

4.0/5

Rating in categories

4.1

Skill development

3.6

Work-life balance

3.5

Salary

3.6

Job security

4.0

Company culture

3.6

Promotions

4.0

Work satisfaction

Explore 11 Reviews and Ratings
Software Engineer
1.9k salaries
unlock blur

₹13.1 L/yr - ₹50.9 L/yr

Senior Software Engineer
1k salaries
unlock blur

₹21.5 L/yr - ₹95 L/yr

Software Engineer2
990 salaries
unlock blur

₹20 L/yr - ₹70 L/yr

Consultant
599 salaries
unlock blur

₹13 L/yr - ₹36.7 L/yr

Support Engineer
563 salaries
unlock blur

₹7.6 L/yr - ₹30 L/yr

Explore more salaries
Compare Microsoft Corporation with

Google

4.4
Compare

Amazon

4.1
Compare

Deloitte

3.8
Compare

TCS

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview