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

SDE - Intern

Microsoft
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 year
Topics: Data Structures, OOPS, Web Devlopment, Dynamic Programming, Graphs
Tip
Tip

Tip 1 : Start from the very basics and don't get frightened or discouraged even when you are not performing well initially.
Tip 2 : Be consistent as much as you can in solving problem.
Tip 3 : Try to solve different type of problem every time so that you learn lot of concepts in a small amount of time also if faced with a blockage while solving problem just see the solution if you are clueless as it will save the time too and make you learn too.

Application process
Where: Campus
Eligibility: Only CSE, IT, ECE and EE branches with cgpa greater than 7 were allowed.
Resume Tip
Resume tip

Tip 1 : Try to make resume single page
Tip 2 : Whatever you have mentioned in resume, you should have thorough knowledge about all the things you have mentioned.
Tip 3 : Mention your best 2 projects and be very well prepared for it.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date10 Aug 2021
Coding problem2

Online test comprised of two questions to be solved in a span of 90 min.

Website used was Codility, you should be aware that on this platform there is no message for whether your solution was correct or not. You just simply can run various test cases to be sure that the solution is correct. So, one should think of all corner cases for the problem before finally submitting it.

1. Range Sum

Moderate
10m average time
80% success
0/80
Asked in companies
AdobeMicrosoftGeeksforGeeks

You are given an array ‘arr’ of size ‘N’. You are provided with ‘Q’ queries, each containing two integers, ‘L’ and ‘R’. Your task is to return the sum of elements from the position ‘L’ to ‘R’ for each query.

For example:
You are given arr = [1, 3, 4, 5, 6, 9], and queries = [[1, 3], [5, 6] , [1, 6]].

For the first query [1, 3] sum of elements = 1 + 3 + 4 = 8. Hence the answer is 8

For the second query [5, 6] sum of elements = 6 + 9 = 15. Hence the answer is 15

For the third query [1, 6] sum of elements = 1 + 3 + 4 + 5 + 6 + 9= 28. Hence the answer is 28. 

Hence the final answer is [8, 15, 28]
Try solving now

2. One Away

Moderate
15m average time
90% success
0/80
Asked in companies
PayPalGoldman SachsMicrosoft

You are given two strings, string A and string B. Your task is to determine whether string A can be transformed into string B by performing only one of the following operations at most one (or maybe zero) time.

1. You can delete a character from any position.
2. You can replace a character with any other character.
3. You can insert a character at any position. 

Note :

1. The strings are non-empty.
2. The strings only contain lowercase English letters.
Try solving now
02
Round
Medium
Face to Face
Duration45 Minutes
Interview date12 Aug 2021
Coding problem1

Interviewer introduced himself as soon as I joined the meeting. Then he straightaway provided me the link to codility where the question was already written.

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).

Try solving now
03
Round
Easy
Face to Face
Duration50 minutes
Interview date12 Aug 2021
Coding problem1

Interviewer introduced himself as soon as I joined the meeting. Then he asked me some casual questions such as how am I and how’s my college life etc. Then he inquired with me that since I was from EE so, he asked whether I had been taught any of the CSE subjects or if I am prepared with the same. I replied that I have only been taught DSA in my 3rd semester. So, he finally said OK and he asked only from DSA part.

1. Check if two trees are Mirror

Easy
15m average time
85% success
0/40
Asked in companies
SamsungHCL TechnologiesQualcomm

You are given two arbitrary binary trees consisting of N and M number of nodes respectively, your task is to check whether the two trees are mirror of each other or not.

Two trees are said to be mirror of each other, if

1. Roots of both the given trees are same.
2. Left subtree of the root of the first tree is the mirror of the right subtree of the root of the second tree.
3. Right subtree of the root of the first tree is the mirror of the left subtree of the root of the second tree.

For example,both the given trees are mirror image of each other: example

Try solving now
04
Round
Hard
Face to Face
Duration50 minutes
Interview date12 Aug 2021
Coding problem1

Interviewer introduced himself as I joined the meeting, and then he explained the agenda of that interview that what we will be doing in the coming 50–60 min.

He was going through my resume and then asked me to tell him some things about me that is not mentioned in the resume. Based on my answer, he cross-questioned me.

1. Generate All Valid Strings

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftAppleUber

Ninja has been given a string ‘STR’ containing ‘(‘ and ‘)’. ‘STR’ may also contain lower case alphabets. In order to make ‘STR’ valid Ninja can remove either ‘)’ or ‘(’ from ‘STR’.

Here are some examples of valid ‘STR’ “((a))”, “(g)()”, “(())()”, "" (an empty string is also a valid string).

Ninja wants to know all the possible valid strings that can be formed from ‘STR’ by minimum possible removals (possibly zero).

Can you help Ninja to generate all valid strings from ‘STR’ by minimum removals?

For Example :
For the given ‘STR’ =  “()(()”, we can form a valid string “()()” by removing ‘(‘ at index 2 or 3.
Try solving now

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
2318 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
1986 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
15606 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
6390 views
3 comments
0 upvotes