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

SDE - 1

Microsoft
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Algorithms, OOPS, DBMS, OS, data analysts questions, Excel
Tip
Tip

Tip 1 : Learn Data Structures and Algorithms.
Tip 2 : Practice coding question using coding platform like LeetCode or CodeChef.
Tip 3 : Focus more on time and space complexities and explore different ways to solve problem.

Application process
Where: Other
Eligibility: 7 CGPA, good in programming/DSA
Resume Tip
Resume tip

Tip 1 : Highlight your past experience if you have, skills and working projects in your resume.
Tip 2 : Do not put false things and over skills in your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date8 Jul 2022
Coding problem2

Timing-90 minutes is the Duration Of Assessment 
you need to give the test within 5 days of getting the test mail.

There are total 2 sections-
1st is containing some mcq type question and 2nd is containing 2 coding questions.

Test is conducted virtually through Microsoft platform. Test covers DSA, OOPS concept, DBMS, SQL, Programming and some general question related to Leadership Principles and workstyles.

1. Core Subjects related Questions

We need to answer questions related to Core subjects, DBMS, SQL, OOPS concept, Programming, Behavioral, Leadership Principles and workstyles.

this round is entirely based on MCQ's.
Questions like:-
1) Which of these is DML command?
2) What is the output of below program
3)What is the output of the flow chart program.
4)which unix command that creates a file without contend
5)Choose the correct property of foreign key in SQL?
6)Which unix command is used to redirect the no of characters in a file f1 to a file f2
7)How to show only last 10 files of a folder in unix?
8)How to copy files from one server to another server in unix?
9)What is the use of chmod command in unix?

Problem approach

Tip 1:Need to select correct option out of 4 options(MCQ type questions)
Tip 2:Revice your notes and practice more in required skill set of a job before giving the assessment. 
Tip 3:Select correct option based on your knowledge

2. Beautiful Vertices

Hard
0/120
Asked in companies
MicrosoftUberAccolite

You are given an undirected graph containing ‘N’ vertices that are connected by ‘M’ edges. Your task is to find the number of beautiful vertices. A vertex is beautiful if removing it will disconnect the graph, i.e., increase the number of connected components.

For Example:

You are given ‘N’ = 5, ‘M’ = 5 and ‘EDGES’ = [[1, 2], [1, 3], [3, 4], [3, 5], [4, 5]]. 

The beautiful vertices in the given graph are ‘1’ and ‘3’. If we remove ‘1’, vertex ‘2’ will be disconnected from the connected component (‘3’↔’4’↔’5’). If we remove vertex ‘3’, we will get two disjoint connected components (‘1’↔’2’) and (‘4’↔’5’).
Try solving now
02
Round
Hard
Face to Face
Duration60 Minutes
Interview date20 Jul 2022
Coding problem2

We need to solve 1 or 2(based on interviewer) coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach.

Interviewer also ask some other question related to DBMS, SQL, OOPS concept and etc.

1. Minimum Characters For Palindrome

Hard
20m average time
70% success
0/120
Asked in companies
MicrosoftGeeksforGeeksBarclays

Given a string STR of length N. The task is to return the count of minimum characters to be added at front to make the string a palindrome.

For example, for the given string “deed”, the string is already a palindrome, thus, minimum characters needed are 0.

Similarly, for the given string “aabaaca”, the minimum characters needed are 2 i.e. ‘a’ and ‘c’ which makes the string “acaabaaca” palindrome.

Problem approach

Don't know the solution, still i am struggling with this problem

Try solving now

2. Sum Root to Leaf

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftUnacademyMorgan Stanley

You are given an arbitrary binary tree consisting of N nodes where each node is associated with a certain integer value from 1 to 9. Consider each root to leaf path as a number.

For example:

       1
      /  \
     2    3

The root to leaf path 1->2 represents the number 12.
The root to leaf path 1->3 represents the number 13.

Your task is to find the total sum of all the possible root to leaf paths.

In the above example,

The total sum of all the possible root to leaf paths is 12+13 = 25
Note:
The output may be very large, return the answer after taking modulus with (10^9+7).
Problem approach

Don't know the optimal solution

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 - 1
5 rounds | 15 problems
Interviewed by Microsoft
4035 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 7 problems
Interviewed by Microsoft
2661 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 2 problems
Interviewed by Microsoft
7425 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 7 problems
Interviewed by Microsoft
1272 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes
company logo
SDE - 1
3 rounds | 11 problems
Interviewed by Amazon
21829 views
4 comments
0 upvotes