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

SDE - 2

Microsoft
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data structures and Alogrithms, High level system Design, Low level system design, Unit Test cases, Puzzles
Tip
Tip

Tip 1 : Prepare topic wise problems from platforms like LeetCode
Tip 2 : Prepare high level system design from SystemExpert.io instead of random Youtube videos.

Application process
Where: Linkedin
Eligibility: None
Resume Tip
Resume tip

Tip 1 : Provide project details along with your impact
Tip 2 : Provide specific data like how many customers benefitted from your application, or by how much you improved performance of the application

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 mins
Interview date3 Sep 2021
Coding problem1

Online coding problems

Moderate
20m average time
80% success
0/80
Asked in companies
HCL TechnologiesAmazonOracle

You are given an ‘M*N’ Matrix, You need to print all possible paths from its top left corner to the bottom right corner if given that you can either move right i.e from (i,j) to (i,j+1) or down i.e from (i, j) to (i+1, j).

For Example :
1 2 3
4 5 6

For the above 2*3 matrix , possible paths are (1 2 3 6) , (1 2 5 6) , (1 4 5 6).
Note :
You can return the paths in any order.
Problem approach

1. Wrote a for loop to go over each move one by one and check if the move is valid or not
2. If valid, changed the robot position to the new position.
3. If not valid, dont change position at all.
4. Repeat for all steps and return final position.

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date7 Sep 2021
Coding problem1

1. Compare Versions

Moderate
0/80
Asked in companies
MicrosoftExpedia GroupLinkedIn

You are given two strings ‘Version1’ and ‘Version2’ representing the version numbers. Your task is to compare them and find out which one of them is the latest version.

Note:
The input strings consist of digits and dots only and both the strings are started and terminated by a digit. There are no leading zeros and no zeros following a dot in both the strings except in the case of zero itself.
For Example:
Version1 = “1.23.45”, Version2 = “1.23.456”

The first two parts of both the strings are the same. The third part of Version2 is greater than the third part of Version1, thus string Version2 is of the latest version.
Problem approach

1. Applied binary search on the data
2. Returned first matching item

Try solving now
03
Round
Medium
Video Call
Duration60 mins
Interview date7 Sep 2021
Coding problem1

1. Best Time to Buy and Sell Stock III

Hard
0/120
Asked in companies
Samsung R&D InstituteMicrosoftSalesforce

You are Harshad Mehta’s friend. He told you the price of a particular stock for the next ‘n’ days.


You are given an array ‘prices’ which such that ‘prices[i]’ denotes the price of the stock on the ith day.


You don't want to do more than 2 transactions. Find the maximum profit that you can earn from these transactions.


Note

1. Buying a stock and then selling it is called one transaction.

2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again. 
Example:
Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].

Output: 6

Explanation: 
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3). 
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6. 
Problem approach

1. Maintained two variables to store minimum price and maximum profit at any given time
2. Run for loop on the input, and update above variables accordingly
3. Return maximum profit at the end

Try solving now
04
Round
Medium
Video Call
Duration60 mins
Interview date7 Sep 2021
Coding problem1

1. System Design Question

Design a logging and analytics system which can support huge amount of load.

Problem approach

Tip 1: Learn about time-series database
Tip 2: Learn about message queues and use them in solution
Tip 3: Explain how would you handle down time

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
2055 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Microsoft
1650 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