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

SDE - Intern

Microsoft
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I was admitted to IIT Roorkee for B.Tech in Computer Science. Firstly I planned that I will start learning DSA in the first year, but I could not (I wasted my first year in fun, but it is also essential I guess). So, I started DSA from the fourth semester and along with DSA, I also learned development because that is what I wanted to be. By the end of the Third year, I was confident in both DSA and development but even then, I keep on revising the concepts.
Application story
It was the last of March, many companies were coming to the campus to hire candidates. I got a message in my telegram group about the company visiting our campus for the hiring of an SDE-Intern. I took part in the hiring drive of Microsoft. The interview process started at the start of April.
Why selected/rejected for the role?
I was able to explain and write optimized code for each question asked by the interviewer. I was upto point and interviewer was quite impressed from me.
Preparation
Duration: 2 months
Topics: Puzzles, OOPS, Data Structures Algorithms, DBMS, Logical Reasoning, Aptitude Questions
Tip
Tip

Tip 1 : For Microsoft, puzzles are must, so you should prepare it thoroughly.
Tip 2 : Practice Company specific DS Algo questions from LeetCode,GFG etc.
Tip 3 : Have deep knowledge about your projects.

Application process
Where: Campus
Eligibility: 6.5
Resume Tip
Resume tip

Tip 1 : Mention projects which you can explain and defend clearly.
Tip 2 : Resume should always be crisp and clear and should be of 1 page.
Tip 3 : If you do competitive programming , you can put links of your various online platforms profiles like Codechef, Codeforces etc.
Tip 4 : There should not be any false achievements or false experience mentioned in the resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 mins
Interview date5 Apr 2023
Coding problem2

This was the first round and it consisted of 40 MCQs from aptitude , logical reasoning etc. and 2 programming questions.
The test was on AMCAT platform.
The test was of 2 hours , web-proctored and switching between tabs was not allowed.

1. Trapping Rain Water

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

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.
Problem approach

1. Create two array left and right of size n. create a variable max_ = INT_MIN.
2. Run one loop from start to end. In each iteration update max_ as max_ = max(max_, arr[i]) and also assign left[i] = max_
3. Update max_ = INT_MIN.
4. Run another loop from end to start. In each iteration update max_ as max_ = max(max_, arr[i]) and also assign right[i] = max_
5.Traverse the array from start to end.
6. The amount of water that will be stored in this column is min(a,b) – array[i],(where a = left[i] and b = right[i]) add this value to total amount of water stored
7. Return the total amount of water stored.

Try solving now

2. Count ways to reach the nth stairs

Moderate
30m average time
80% success
0/80
Asked in companies
InfosysTata Consultancy Services (TCS)Amazon

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Problem approach

Directly solved using Dynamic programming

Try solving now
02
Round
Medium
HR Round
Duration40 mins
Interview date5 Apr 2023
Coding problem2

It was the last round and was all about Project discussion and HR questions.

1. Project based questions

Q1. Project TechStack and what is the application of the project.
Q2. Discussion about the libraries and functions used in the project.
 

Problem approach

Tip 1 : Practice about HR questions beforehand so that you don't have to think much about them.
Tip 2 : Have a thorough understanding of your project and the functionality used.
Tip 3 : Have confidence while giving up your answers.

2. Basic HR Questions

Q1. HR Questions - Do you have any higher studies plans.
Q2. What it makes you to be fit for our company.
Q3. Are you a team leader or a team member.

Here's your problem of the day

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

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 8 problems
Interviewed by Microsoft
1770 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
1051 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 5 problems
Interviewed by Microsoft
1581 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
237 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
13918 views
4 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
9230 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Amazon
6078 views
3 comments
0 upvotes