Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare
4.1

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 Interview Questions, Process, and Tips

Updated 11 Jan 2025

Top Microsoft Corporation SDE Interview Questions and Answers

  • Q1. find the minimum no of jumps required to reach the end of array.where element at each index represent how many max moves you will take in right
  • Q2. given a 2D array of 0 and 1. where each row is sorted. find the row with maximum no of 1 in minimum time complexcity
  • Q3. Given an unsorted array of size 5. How many minimum comparisons are needed to find the median? then he extended it for size n
View all 14 questions

Microsoft Corporation SDE Interview Experiences

6 interviews found

SDE Interview Questions & Answers

user image Lakshay Dabas

posted on 11 Jan 2025

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Traverse Binary Tree
  • Q2. How does bittorent work

SDE Interview Questions & Answers

user image Anonymous

posted on 29 Nov 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Oct 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Abcdef jssu ksye ksyd kahe jeheb

Round 2 - Technical 

(2 Questions)

  • Q1. Introduce yourself
  • Q2. Project related questions

SDE Interview Questions Asked at Other Companies

asked in Infosys
Q1. Longest Increasing SubsequenceFor a given array with N elements, ... read more
asked in Infosys
Q2. Return Subsets Sum to KGiven an integer array 'ARR' of size 'N' a ... read more
asked in Nagarro
Q3. Puzzle QuestionHow do we measure forty-five minutes using two ide ... read more
asked in Nagarro
Q4. Partition to K equal sum subsetsYou are given an array of 'N' int ... read more
asked in Nagarro
Q5. Sort A “K” Sorted Doubly Linked List You’re given a doubly-linked ... read more

SDE Interview Questions & Answers

user image Anonymous

posted on 26 Feb 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Jan 2024. There was 1 interview round.

Round 1 - Coding Test 

3 coding questions, mostly focused on dp, graphs strings and arrays, it was medium to hard level

SDE Interview Questions & Answers

user image Anonymous

posted on 19 Sep 2023

Interview experience
3
Average
Difficulty level
Hard
Process Duration
4-6 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Mar 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 - HR 

(1 Question)

  • Q1. Tell me about yourself
Round 3 - Technical 

(1 Question)

  • Q1. Reverse a tree using DSA
  • Ans. 

    Reverse a tree using DSA involves traversing the tree in a specific order and swapping the left and right child nodes.

    • Start by traversing the tree in post-order or level-order traversal.

    • Swap the left and right child nodes of each node as you traverse the tree.

    • Continue until all nodes have been visited and their children swapped.

  • Answered by AI

Skills evaluated in this interview

Microsoft Corporation interview questions for designations

 SDE Intern

 (6)

 SDE-2

 (5)

 SDE (Software Development Engineer)

 (4)

 Intern

 (21)

 Technical Support Engineer

 (14)

 Program Manager

 (11)

 Support Engineer

 (8)

 Product Manager

 (7)

SDE Interview Questions & Answers

user image Anonymous

posted on 5 Jun 2015

Interview Questionnaire 

8 Questions

  • Q1. Given an array A[n] such that A[i+1] = A[i]+1 OR A[i]-1, and a number k, find out whether k is present in A[n] or not, in most efficient way?
  • Ans. 

    Efficiently check if a number is present in an array where each element differs by 1.

    • Use binary search to find the element in the array

    • Calculate the difference between the middle element and the first element

    • If the difference is equal to the index of the middle element minus the index of the first element, then the left half of the array is consecutive

    • If the difference is not equal, then the right half of the array is ...

  • Answered by AI
  • Q2. Name any 1 microsoft product that you have been using and suggest 5 improvements in it alongwith priority assignments p1....p5
  • Ans. 

    Microsoft Excel

    • Add more chart types (p1)

    • Improve collaboration features (p2)

    • Enhance data analysis tools (p3)

    • Integrate with more external data sources (p4)

    • Improve error handling and debugging (p5)

  • Answered by AI
  • Q3. A square picture is cut into 16 squares and they are shuffled. Write a program to rearrange the 16 squares to get the original big square
  • Ans. 

    Program to rearrange shuffled 16 squares to get original big square

    • Create a 4x4 matrix to represent the big square and fill it with shuffled squares

    • Loop through the matrix and check if each square is in the correct position

    • If a square is not in the correct position, swap it with the square in the correct position

    • Repeat until all squares are in the correct position

  • Answered by AI
  • Q4. There are 9 identical Marbels out of which 1 is heavy. find out that Marbel
  • Q5. Given 3 sorted arrays, array a, b, c. find all pairs where a[i] + b[j] = c[k] note : a, b , c are sorted arrays
  • Q6. What is the difference between the two declarations? int p=*(int*)i; int p=*(int*)&i;
  • Ans. 

    The first declaration casts i to int pointer and dereferences it, while the second declaration casts the address of i to int pointer and dereferences it.

    • The first declaration assumes i is already an int pointer.

    • The second declaration takes the address of i and casts it to an int pointer.

    • The first declaration may cause a segmentation fault if i is not an int pointer.

    • The second declaration may cause unexpected behavior i...

  • Answered by AI
  • Q7. Given an unsorted array of size 5. How many minimum comparisons are needed to find the median? then he extended it for size n
  • Ans. 

    Minimum comparisons needed to find median in unsorted array of size n

    • For odd n, median is the middle element. For even n, median is the average of middle two elements

    • Minimum comparisons needed for odd n is (n-1)/2. For even n, it is n/2

    • Various sorting algorithms can be used to find median in an unsorted array

  • Answered by AI
  • Q8. Given an array which is alternatively sorted. What will be the time complexity to find out an element in it. e.g. 14,3,16,6,22,7,24,11,27
  • Ans. 

    Time complexity to find an element in an alternatively sorted array.

    • The time complexity will be O(log n) using binary search.

    • Check the middle element and compare with the target element.

    • If the middle element is greater than the target, search in the left half of the array.

    • If the middle element is smaller than the target, search in the right half of the array.

    • Repeat until the target element is found or the array is exha

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: #Given an array A[n] such that A[i+1] = A[i]+1 OR A[i]-1, and a number k, find out whether k is present in A[n] or not, in most efficient way?
#Name any 1 microsoft product that you have been using and suggest 5 improvements in it alongwith priority assignments p1....p5.
#A square picture is cut into 16 squares and they are shuffled. Write a program to rearrange the 16 squares to get the original big square.
#There are 9 identical Marbels out of which 1 is heavy. find out that Marbel.
#given 3 sorted arrays, array a, b, c.
find all pairs where a[i] + b[j] = c[k]
note : a, b , c are sorted arrays.
#What is the difference between the two declarations?
int p=*(int*)i;
int p=*(int*)&i;
#Given an unsorted array of size 5.
How many minimum comparisons are needed to find the median? then he extended it for size n.
#Given an array which is alternatively sorted. What will be the time complexity to find out an element in it.
e.g. 14,3,16,6,22,7,24,11,27

College Name: NA

Skills evaluated in this interview

Get interview-ready with Top Microsoft Corporation Interview Questions

SDE Interview Questions & Answers

user image Anonymous

posted on 5 Jun 2015

Interview Questionnaire 

6 Questions

  • Q1. Find a equilibrium index in array
  • Ans. 

    Find an index in array where sum of elements on left side is equal to sum of elements on right side.

    • Loop through array and calculate sum of all elements

    • Then loop through array again and check if sum of elements on left side is equal to sum of elements on right side

    • Return the index if found, else return -1

  • Answered by AI
  • Q2. Find the minimum no of jumps required to reach the end of array.where element at each index represent how many max moves you will take in right
  • Ans. 

    Find minimum number of jumps required to reach end of array with max moves in right direction at each index.

    • Use dynamic programming approach to solve the problem

    • Maintain an array to store minimum number of jumps required to reach each index

    • Traverse the array and update the minimum number of jumps for each index

    • Return the minimum number of jumps required to reach the end of array

  • Answered by AI
  • Q3. Tournament tree puzzle and write code for that
  • Ans. 

    Tournament tree is a binary tree where each node represents a match between two players/teams.

    • Tournament tree is used in sports tournaments to determine the winner.

    • The leaf nodes represent the players/teams and the internal nodes represent the matches.

    • The winner of each match is the node with the higher score.

    • Code can be written using a recursive function to traverse the tree and determine the winner.

  • Answered by AI
  • Q4. Find the 2 maximum elements in array in O(n+log(n)) comparison
  • Ans. 

    Find 2 maximum elements in array in O(n+log(n)) comparison

    • Use divide and conquer approach

    • Divide array into two halves

    • Recursively find max elements in each half

    • Compare the two max elements to find the overall max elements

  • Answered by AI
  • Q5. Celebrity Problem puzzle and write code for that
  • Q6. Given a 2D array of 0 and 1. where each row is sorted. find the row with maximum no of 1 in minimum time complexcity
  • Ans. 

    Find row with maximum 1s in a sorted 2D array of 0s and 1s.

    • Use binary search to find the first occurrence of 1 in each row.

    • Calculate the number of 1s in each row using the index found in step 1.

    • Keep track of the row with maximum number of 1s.

    • Time complexity: O(m log n), where m is the number of rows and n is the number of columns.

  • Answered by AI

Interview Preparation Tips

College Name: IIT GANDHINAGAR

Skills evaluated in this interview

Interview questions from similar companies

SDE Interview Questions & Answers

Amadeus user image Ayush Chikate

posted on 20 Dec 2024

Interview experience
3
Average
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Aptitude Test 

4 sections verbal logical aptitude and coding(in C)

Round 2 - Technical 

(2 Questions)

  • Q1. Puzzles (GFG Puzzles)
  • Q2. Making patterns of triangle and diamond
  • Ans. 

    Creating patterns of triangle and diamond using characters

    • For triangle pattern, use nested loops to print spaces and characters in each row

    • For diamond pattern, divide the diamond into two triangles and print accordingly

    • Examples: Triangle pattern - * ** *** Diamond pattern - * *** ***** *** *

  • Answered by AI

SDE Interview Questions & Answers

Google user image Paltasingi Poojitha 4-Year B.Tech. Electrical Engineering

posted on 12 Nov 2024

Interview experience
3
Average
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
No response

I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Find minimum no. of increment operations to make array unique
  • Ans. 

    To make an array of strings unique, count the number of duplicate elements and increment them accordingly.

    • Iterate through the array and keep track of the frequency of each element.

    • For each duplicate element, increment it to make the array unique.

    • Return the total number of increment operations needed.

  • Answered by AI
  • Q2. Given a binary tree whose every node value is a number. find the sum of all the numbers that are formed from root to leaf paths
  • Ans. 

    Sum all numbers formed from root to leaf paths in a binary tree

    • Traverse the tree from root to leaf nodes, keeping track of the current number formed

    • Add the current number to the sum when reaching a leaf node

    • Recursively explore left and right subtrees

  • Answered by AI

Skills evaluated in this interview

SDE Interview Questions & Answers

Amdocs user image Anonymous

posted on 22 May 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

It consisted of both technical programming and theoretical concepts. C++ and SQL

Round 2 - Technical 

(2 Questions)

  • Q1. Consisted of scenario based questions from technical domain.
  • Q2. Differentiate all sorting algorithms
  • Ans. 

    Sorting algorithms differ in their approach to sorting elements in an array.

    • Bubble Sort - compares adjacent elements and swaps them if they are in the wrong order

    • Merge Sort - divides the array into two halves, sorts them, and then merges them

    • Quick Sort - picks a pivot element and partitions the array around the pivot

    • Selection Sort - repeatedly selects the minimum element and swaps it with the current element

    • Insertion S...

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. Simple resume related non technical.

Skills evaluated in this interview

SDE Interview Questions & Answers

Oracle user image Anonymous

posted on 5 Mar 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Referral and was interviewed in Feb 2024. There were 2 interview rounds.

Round 1 - One-on-one 

(2 Questions)

  • Q1. Leetcode- Climb stairs (medium)
  • Q2. Reverse linkedlist
Round 2 - Technical 

(1 Question)

  • Q1. Leetcode- Rotten oranges matrix

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation SDE interview?
Microsoft Corporation interview process usually has 1-2 rounds. The most common rounds in the Microsoft Corporation interview process are Technical, Coding Test and Resume Shortlist.
What are the top questions asked in Microsoft Corporation SDE interview?

Some of the top questions asked at the Microsoft Corporation SDE interview -

  1. find the minimum no of jumps required to reach the end of array.where element a...read more
  2. given a 2D array of 0 and 1. where each row is sorted. find the row with maximu...read more
  3. Given an unsorted array of size 5. How many minimum comparisons are needed to ...read more

Tell us how to improve this page.

Microsoft Corporation SDE Interview Process

based on 3 interviews in last 1 year

Interview experience

4
  
Good

People are getting interviews through

based on 3 Microsoft Corporation interviews
Job Portal
Campus Placement
67%
33%
Moderate Confidence
?
Moderate Confidence means the data is based on a sufficient number of responses received from the candidates

SDE Interview Questions from Similar Companies

Google SDE Interview Questions
4.4
 • 15 Interviews
Accenture SDE Interview Questions
3.9
 • 10 Interviews
Oracle SDE Interview Questions
3.7
 • 4 Interviews
Dell SDE Interview Questions
4.1
 • 3 Interviews
Amadeus SDE Interview Questions
4.0
 • 3 Interviews
IBM SDE Interview Questions
4.1
 • 2 Interviews
Adobe SDE Interview Questions
4.0
 • 2 Interviews
Amdocs SDE Interview Questions
3.8
 • 2 Interviews
Zoho SDE Interview Questions
4.3
 • 1 Interview
View all
Microsoft Corporation SDE Salary
based on 72 salaries
₹22.7 L/yr - ₹45.3 L/yr
27% more than the average SDE Salary in India
View more details

Microsoft Corporation SDE Reviews and Ratings

based on 5 reviews

3.9/5

Rating in categories

3.8

Skill development

4.4

Work-Life balance

3.7

Salary & Benefits

4.8

Job Security

4.3

Company culture

3.0

Promotions/Appraisal

3.7

Work Satisfaction

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

₹13.1 L/yr - ₹51 L/yr

Senior Software Engineer
1k salaries
unlock blur

₹25 L/yr - ₹85 L/yr

Software Engineer2
981 salaries
unlock blur

₹20 L/yr - ₹72 L/yr

Consultant
604 salaries
unlock blur

₹13 L/yr - ₹42 L/yr

Support Engineer
570 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

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview