Microsoft interview experience Real time questions & tips from candidates to crack your interview

SDE - 2

Microsoft
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: DSA, ALgorithm, HLD, LLD, CS Fundamentals
Tip
Tip

Tip 1 : Practice previous interview experience
Tip 2 : Mock interviews
Tip 3 : Focus on behavioral aspects as well

Application process
Where: Other
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Well structured and concise
Tip 2 : Technologies and previous experience should be properly documented

Interview rounds

01
Round
Medium
Online Coding Interview
Duration50 Minutes
Interview date21 May 2020
Coding problem2

1. Median of two sorted arrays

Hard
25m average time
65% success
0/120
Asked in companies
GrabMicrosoftWells Fargo

Given two sorted arrays 'a' and 'b' of size 'n' and 'm' respectively.


Find the median of the two sorted arrays.


Median is defined as the middle value of a sorted list of numbers. In case the length of list is even, median is the average of the two middle elements.


The expected time complexity is O(min(logn, logm)), where 'n' and 'm' are the sizes of arrays 'a' and 'b', respectively, and the expected space complexity is O(1).


Example:
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]

Output: 3.5

Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
Problem approach

Step 1 : Clarify the ques and constraints
Step 2 : Explained brute force solution with O (n+m) complexity.
Step 3 : Optimised and explain to the interviewer
Step 4 : Implement it and run test cases

Try solving now

2. Search In A Row Wise And Column Wise Sorted Matrix

Moderate
15m average time
80% success
0/80
Asked in companies
NoBrokerOracleGoldman Sachs

You are given an 'N * N' matrix of integers where each row and each column is sorted in increasing order. You are given a target integer 'X'.


Find the position of 'X' in the matrix. If it exists then return the pair {i, j} where 'i' represents the row and 'j' represents the column of the array, otherwise return {-1,-1}


For example:
If the given matrix is:
[ [1, 2, 5],
  [3, 4, 9],
  [6, 7, 10]] 
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.
Problem approach

Step 1 : Clarify the ques and constraints
Step 2 : Explained brute force solution.
Step 3 : Optimised and explain to the interviewer
Step 4 : Implement it and run test cases

Try solving now
02
Round
Medium
Online Coding Interview
Duration55 Minutes
Interview date22 May 2020
Coding problem2

1. Number of Islands

Easy
0/40
Asked in companies
MicrosoftMeeshoAmazon

You have been given a non-empty grid consisting of only 0s and 1s. You have to find the number of islands in the given grid.

An island is a group of 1s (representing land) connected horizontally, vertically or diagonally. You can assume that all four edges of the grid are surrounded by 0s (representing water).

Problem approach

Step 1 : Clarify the ques and constraints
Step 2 : Explained brute force solution with O (n+m) complexity.
Step 3 : Optimised and explain to the interviewer
Step 4 : Implement it and run test cases

Try solving now

2. DBMS Question

What is ACID properties

03
Round
Medium
Online Coding Interview
Duration50 minutes
Interview date22 May 2020
Coding problem1

1. System Design Question

Design Paytm

04
Round
Medium
Online Coding Interview
Duration55 Minutes
Interview date26 May 2020
Coding problem1

1. System Design Question

Design pizza delivery system

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
3 rounds | 9 problems
Interviewed by Microsoft
2056 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Microsoft
1651 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 7 problems
Interviewed by Microsoft
1649 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Microsoft
7377 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29891 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6765 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5280 views
0 comments
0 upvotes