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

SDE - Intern

Microsoft
upvote
share-icon
5 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, Object Oriented Programming, Database management system, System design
Tip
Tip

Tip 1 : Keep the resources limited for your preparation 
Tip 2 : Practice coding on a regular basis 
Tip 3 : Focus on problem solving skills 
Tip 4 : Make your resume very clean and should have full confidence on everything mentioned in the resume

Application process
Where: Campus
Eligibility: 7.5 CGPA, with no active backlogs
Resume Tip
Resume tip

Tip 1 : Make your resume systematic and clean, preferably it should be of 1 page only 
Tip 2 : Never put false things on resume
Tip 3 : Having projects in your resume will be plus point

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date23 Jul 2019
Coding problem3

This round was of 90 minutes, consisting of 3 coding questions from easy to medium level. It was conducted in the morning hours. The invigilators were the staff of my college only. The platform was very smooth and almost all the programming languages were allowed.

1. Valid Parentheses

Easy
10m average time
80% success
0/40
Asked in companies
AmazonIntuitOracle

You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


Return true if the given string 'S' is balanced, else return false.


For example:
'S' = "{}()".

There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Try solving now

2. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
HCL TechnologiesCiti BankAtlassian

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Try solving now

3. Travelling Salesman Problem

Hard
50m average time
50% success
0/120
Asked in companies
MicrosoftOperaMorgan Stanley

Given a list of cities numbered from 0 to N-1 and a matrix 'DISTANCE' consisting of 'N' rows and 'N' columns denoting the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the starting city?

Try solving now
02
Round
Easy
Coding Test - Pen and paper
Duration60 minutes
Interview date26 Jul 2019
Coding problem2

This round was a group fly round. Team from Microsoft came for invigilation and guidance. We were divided into small groups, and a mentor was allotted to us. There were 2 questions and time was 60 minutes. First question was based on system design and second one was coding question. We were asked to write on paper and discuss with mentors. We were marked on the basis of how we discussed our ideas with our mentor and how clearly we presented our idea.

1. System Design Question

Design a search engine for global retail application, write a) a) Assumptions b) System considerations c)Design Components

2. Decode String

Easy
0/40
Asked in companies
Expedia GroupDisney + HotstarMicrosoft

Ninja requests a PS5 from Santa on Christmas. Santa decides to give Ninja a brand new PS5, but he locks it in a safe and gives Ninja a string SECRETCODE. The password to open the safe is the length of the longest palindromic subsequence present in SECRETCODE.

A palindromic subsequence is a subsequence (generated by deleting some character of a given string without changing its order) which is a palindrome. For example: ‘ABBA’ is the longest palindromic subsequence for ‘CACBDBA’.

As Ninja is busy sending Christmas presents to his friends, he asks you for help. Can you help Ninja open the safe and retrieve his PS5?


Note:

‘SECRETCODE’ consists of only English uppercases.


Try solving now
03
Round
Medium
Face to Face
Duration30 minutes
Interview date27 Jul 2019
Coding problem2

The interview was early in the morning. The environment was very tensed, we all were very nervous for the first round of interview. The interviewers were very friendly, they were helping us a lot .

1. Insert Into A Binary Search Tree

Easy
20m average time
80% success
0/40
Asked in companies
AdobeSAP LabsCIS - Cyber Infrastructure

You have been given a root node of the binary search tree and a positive integer value. You need to perform an insertion operation i.e. inserting a new node with the given value in the given binary search tree such that the resultant tree is also a binary search tree.


If there can be more than one possible tree, then you can return any.


Note :

A binary search tree is a binary tree data structure, with the following properties :

    a. The left subtree of any node contains nodes with a value less than the node’s value.

    b. The right subtree of any node contains nodes with a value equal to or greater than the node’s value.

    c. Right, and left subtrees are also binary search trees.
It is guaranteed that,

    d. All nodes in the given tree are distinct positive integers.

    e. The given BST does not contain any node with a given integer value.

Example, below the tree, is a binary search tree.

1

Below the tree is not a BST as node ‘2’ is less than node ‘3’ but ‘2’ is the right child of ‘3’, and node ‘6’ is greater than node ‘5’ but it is in the left subtree of node ‘5’.

1

Try solving now

2. System Design Questions

He asked me some questions based on Google maps, how it works and how it can be further optimized. He asked some questions about the scalability of websites and my opinions on the System design questions asked in the group fly round

04
Round
Easy
Face to Face
Duration30 minutes
Interview date27 Jul 2019
Coding problem1

This round was conducted in the afternoon. The environment was friendly. Interviewer was very friendly and helping.

1. Sort Stack

Easy
20m average time
80% success
0/40
Asked in companies
MicrosoftIBMAdobe

You are given a stack ‘S’. Your task is to sort the sack recursively.


Note:
Looping through the stack is not allowed.
You need to return a stack that is sorted in descending order.


For example:
Given stack S = 1 3 2 
The output will be 3 2 1 since it is the sorted order.
Try solving now
05
Round
Medium
HR Round
Duration30 minutes
Interview date27 Jul 2019
Coding problem1

I was conducted in the evening. The interviewer was very friendly and asked me questions mostly about me and my future plans.

1. Basic HR Questions

Where do you see yourself in 5 years?

Why Microsoft?

Problem approach

Tip 1 : Always speak truth 
Tip 2 : Be very clear about your future plans, strengths and weaknesses 
Tip 3 : Have clear idea about the projects you did.

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 - Intern
3 rounds | 8 problems
Interviewed by Microsoft
2317 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
1353 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 5 problems
Interviewed by Microsoft
1985 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
632 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Amazon
6389 views
3 comments
0 upvotes