Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare
4.0

based on 1.6k Reviews

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Microsoft Corporation SDE-2 Interview Questions, Process, and Tips

Updated 28 May 2022

Top Microsoft Corporation SDE-2 Interview Questions and Answers

  • Q1. Rearrange String Problem Statement Given a string ‘S’, your task is to rearrange its characters so that no two adjacent characters are the same. If it's possible, return ...read more
  • Q2. Clone Linked List with Random Pointer Your task is to create a deep copy of a linked list, where each node has two pointers: one that points to the next node in the list ...read more
  • Q3. Find Nodes at Distance K in a Binary Tree Your task is to find all nodes that are exactly a distance K from a given node in an arbitrary binary tree. The distance is def ...read more
View all 16 questions

Microsoft Corporation SDE-2 Interview Experiences

5 interviews found

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 28 May 2022

I was interviewed in Aug 2022.

Round 1 - Face to Face 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

A problem solving round with 1 problem on DP. It was on a platform with a text editor provided. Was expected to solve the problem and write the code. Post initial discussion on the solution approaches came up with an optimized solution using Dynamic Programming and wrote the solution. Then some discussion on the Time and Space complexity of the solution. 

Interviewer was satisfied with the solution and also dry ran with 1 test case.

  • Q1. 

    Possible Words from a Phone Number: Problem Statement

    Given a string S composed of digits ranging from 2 to 9, determine all possible strings that can be created by mapping these digits to their correspon...

Round 2 - Face to Face 

Round duration - 60 minutes
Round difficulty - Hard

This round happened on the same day after 1st round. It was a Low level design round with one problem to be solved in 60 minutes.

Round 3 - Face to Face 

Round duration - 60 minutes
Round difficulty - Medium

This round happened on the same day after 2nd round. The platform used was codility. It was a System design/ Low level design round with one problem to be solved in 60min.

Round 4 - HR 

Round duration - 30 minutes
Round difficulty - Easy

It was an HR round with focus on the work ethics, culture and my prior experiences. The recruiter was trying to test my situation handling capability by asking different scenario based questions.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in BangaloreEligibility criteriaNo criteriaMicrosoft interview preparation:Topics to prepare for the interview - Data Structures, Graphs Algorithms, Dynamic programming, OOP concepts, Low level designTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Practice problems with consistency
Tip 2 : Learn and try to up solve
Tip 3 : Enjoy each problem and try different ways of solving it
Tip 4 : Brush up OOP concepts
Tip 5 : Practice hands on for Low level design by white board coding

Application resume tips for other job seekers

Tip 1 : Have 1-2 good quality projects.
Tip 2 : Try to maintain 1 page resume.
Tip 3 : Put things which you have in depth knowledge about in resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 14 Mar 2022

I applied via LinkedIn and was interviewed in Feb 2022. There were 5 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Interview was around 1.15 hrs. Initially it was self introduction for both sides. Then a string manipulation related question was posted and asked to solve. At last it was queries to interviewer.

Round 3 - Case Study 

Total time 1hr. Self introduction for both parties.
Questions on CICD process in my project and automation ideas to handle errors with different scenarios. Then queries if any.

Round 4 - Coding Test 

Total time 1.15hr.
Self introduction and coding question related to linked list in codility. The question was enhanced depending on splving techniques. Finally queries.

Round 5 - HR 

(1 Question)

  • Q1. Why are you looking for a change?

Interview Preparation Tips

Interview preparation tips for other job seekers - It's ok if one doesnt know the exact answers for any questions. Attempt it with confidence. They will guide you got struck anywhere.
Listen to them keenly, they are always dropping hints in the middle
And if any doubts, always asks they prefer people with clarity as it's their motto.

SDE-2 Interview Questions Asked at Other Companies

asked in Walmart
Q1. Maximum Frequency Number Problem Statement Given an array of inte ... read more
asked in Atlassian
Q2. K Most Frequent Words Problem Statement Given an array of N non-e ... read more
Q3. Reverse String Operations Problem Statement You are provided with ... read more
asked in ShareChat
Q4. Square Root of an Integer Challenge Given an integer 'A', the obj ... read more
asked in DP World
Q5. Count Ways To Reach The N-th Stair Problem Statement You are give ... read more

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 25 May 2022

I was interviewed before May 2021.

Round 1 - Video Call 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. 

    Rearrange String Problem Statement

    Given a string ‘S’, your task is to rearrange its characters so that no two adjacent characters are the same. If it's possible, return any such arrangement, otherwise re...

  • Q2. 

    Find Nodes at Distance K in a Binary Tree

    Your task is to find all nodes that are exactly a distance K from a given node in an arbitrary binary tree. The distance is defined as the number of edges between ...

Round 2 - Video Call 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. 

    My Calendar Problem Statement

    Given N events, each represented with a start and end time as intervals, i.e., booking on the half-open interval [start, end). Initially, the calendar is empty. A new event c...

Round 3 - Video Call 

Round duration - 45 minutes
Round difficulty - Easy

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in HyderabadEligibility criteriaNo criteriaMicrosoft interview preparation:Topics to prepare for the interview - Algorithms, System Design, Fundamentals, Problem Solving, BehavioralTime required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Tip 1 : Focus on fundamentals
Tip 2 : Focus on problem solving skills
Tip 3 : Be consistent

Application resume tips for other job seekers

Tip 1 : Do not bloat your resume with non-sense, add only what you have done and only major projects.
Tip 2 : Be crisp - adding 10 programming languages in your resume won't take you anywhere but understanding 1 language with heart is definitely a major plus.

Final outcome of the interviewSelected

Skills evaluated in this interview

What people are saying about Microsoft Corporation

View All
intensedrum
Verified Icon
4d
works at
CarDekho
Btao btao jaldi!
Who will win the AI race ?
Deepseek
0%
OpenAI
0%
Google
0%
Microsoft
0%
Perplexity
0%
22 participants . poll closed
Got a question about Microsoft Corporation?
Ask anonymously on communities.

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 19 Dec 2020

I applied via Referral and was interviewed in Nov 2020. There was 1 interview round.

Interview Questionnaire 

3 Questions

  • Q1. Get excel column address based on number given.
  • Ans. 

    Get Excel column address based on number given.

    • Divide the number by 26 and get the remainder and quotient.

    • Convert the remainder to a character and add it to the result string.

    • Repeat until quotient is zero.

  • Answered by AI
  • Q2. Find if a given string exists in a given matrix of characters
  • Ans. 

    Find if a given string exists in a given matrix of characters

    • Iterate through each character in the matrix and check if it matches the first character of the given string. If it does, perform a depth-first search to check if the rest of the string can be formed from adjacent characters in the matrix.

    • Use a trie data structure to store all possible substrings of the matrix and check if the given string is present in the t...

  • Answered by AI
  • Q3. Video feed api design
  • Ans. 

    Designing a video feed API

    • Define endpoints for accessing video feeds

    • Include authentication and authorization mechanisms

    • Consider scalability and performance

    • Support different video formats and resolutions

    • Provide error handling and logging

    • Ensure data privacy and security

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare easy questions of Leetcode and prepare them well. Be true to yourselves, don't fake it. Be sure to know each and every aspect of projects in your resume very well.

Skills evaluated in this interview

Microsoft Corporation interview questions for designations

 SDE

 (6)

 SDE Intern

 (6)

 SDE (Software Development Engineer)

 (4)

 Program Manager 2

 (1)

 Data Scientist 2

 (1)

 Product Designer 2

 (1)

 Senior Software Engineer 2

 (2)

 Site Reliability Engineer 2

 (1)

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 28 May 2022

I was interviewed before May 2021.

Round 1 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Easy

  • Q1. 

    Next Greater Element Problem Statement

    Given a list of integers of size N, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X is the firs...

  • Ans. 

    I solved this via stack

    1. Push the first node to stack.

    2. Pick the rest of the node one by one and follow the following steps in the loop: 

    3. Mark the current node as next node.

    4. If the stack is not empty, compare the top node value of the stack with next node value.

    5. If next node value is greater than the top node value then, Pop the top node from the stack and next is the next greater element for the popped no...

  • Answered Anonymously
  • Q2. 

    Clone Linked List with Random Pointer

    Your task is to create a deep copy of a linked list, where each node has two pointers: one that points to the next node in the list, and a 'random' pointer which can ...

  • Ans. 

    This is bit tricky because if you you create entire nodes and then copy value of original linked list node then you will shallow copy the references.
    I tried to deep copy from end node to head node, but yeah you need to store prev references as those are lost because of previous problem I mentioned above.

  • Answered Anonymously
Round 2 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. 

    Smallest Window Problem Statement

    Given two strings S and X containing random characters, the task is to find the smallest substring in S which contains all the characters present in X.

    Input:

    The first...
  • Ans. 

    1. First check if the length of the string is less than the length of the given pattern, if yes then “no such window can exist “.

    2. Store the occurrence of characters of the given pattern in a hash_pat[].
    we will be using two pointer technique basically

    3. Start matching the characters of pattern with the characters of string i.e. increment count if a character matches.

    4. Check if (count == length of pattern ) this means...

  • Answered Anonymously
  • Q2. 

    Connect Nodes at Same Level Problem Statement

    Given a binary tree, connect all adjacent nodes at the same level by populating each node's 'next' pointer to point to its next right node. If there is no nex...

  • Ans. 

    I tried multiple approaches like storing direct child in queue and then retrieving and connecting in them and also adding further direct child in queue.

    I was not able to solve this completely and some corner case was missing like when there is no right or left child.
    But interviewer told me that you tried it nicely.

  • Answered Anonymously
Round 3 - Face to Face 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Easy

  • Q1. 

    Closest Palindrome Problem Statement

    You are given a string 'S' that represents a number. Your task is to find the closest palindromic number to this integer represented by 'S'. The closest number is defi...

  • Ans. 

    I solved it with below steps
    1. Break the string into half.
    2. Take first half and then reverse this first half and append.
    e.g
    3745, its first half is 37 and then reversing the first half I will get 73. So next largest no which is palindrome is 3773.

    3. Consider a case when you get no. less than the given no. e.g 3796
    Following #2 approach you will get 3769 which is less than 3796.
    In this case I incremented the first half b...

  • Answered Anonymously
Round 4 - Face to Face 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. 

    Minimum Operation Needed to Convert to the Given String

    You are given two strings str1 and str2. Determine the minimum number of operations required to transform str1 into str2.

    Explanation:

    An operatio...

  • Ans. Greedy Approach
    1. We will do the two-pointer approach, Initialize the first pointer to the start of str1 and the second pointer to the start of the str2.
    2. Now increase the first pointer till the character pointed by the first pointer in str1 matches the character at the second pointer in str2. And the number of character which did not match should be placed at the end of str1. Therefore increase our answer by how many times...
  • Answered Anonymously
  • Q2. 

    Snake and Ladder Problem Statement

    Given a Snake and Ladder Board with 'N' rows and 'N' columns filled with numbers from 1 to N*N starting from the bottom left of the board, and alternating direction each...

  • Ans. 

    It is very similar to the above problem

    The idea is to consider the given snake and ladder board as a directed graph with number of vertices equal to the number of cells in the board. The problem reduces to finding the shortest path in a graph. Every vertex of the graph has an edge to next six vertices if next 6 vertices do not have a snake or ladder. If any of the next six vertices has a snake or ladder, then the edge ...

  • Answered Anonymously
  • Q3. Can you provide a high-level design of a web crawler?
  • Ans. 

    Tip 1: Take Queues for background processes, Use bloomfilter to reduce DB query while checking if same URL is already processed, Use different services for page parsing and download pages. You can have separate queues based on domain so that you can parse all pages of same domain once. Use reddis cache to store latest pages.

    Tip 2: Use Distributed systems, HDFS for storage large unstructured content and analytical jobs

    T

  • Answered Anonymously
Round 5 - Face to Face 

(1 Question)

Round duration - 70 Minutes
Round difficulty - Medium

  • Q1. Design a system that can efficiently handle millions of requests to save or update a key-value pair, as well as millions of requests to read the value of a key.
  • Ans. 

    Some of the tips are here.
    Tip 1 : Think about CAP theorem. You have to be consistent here bit of latency is fine.
    Tip 2 : Ask about dirty reads are allowed or not. if allowed , you can think on making system faster. Keep the data in cache so that if some old value is fine you can refresh cache after some period of time.
    Seperate DB for write and read. Readers can sync from write DB asynchronously.

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from International Institute of Information Technology Bangalore. I applied for the job as SDE - 2 in BengaluruEligibility criteria5+ years of experience.Microsoft interview preparation:Topics to prepare for the interview - Graph Algorithms(BFS,DFS), Greedy Programming, Dynamic Programming,Problems involving Arrays, LinkedList, Queues, Stacks,High Level Designs and Low Level Designs.Time required to prepare for the interview - 6 MonthsInterview preparation tips for other job seekers

Tip 1 : Solve atleast 1 DS/Algo problem everyday
Tip 2 : Learn high level designs and low level designs

Application resume tips for other job seekers

Tip 1 : Have your skills defined in bold like worked on scaling the system which takes 100 million traffic per day etc, have experience in BigData, kafka, AWS/Azure erc
Tip2 : Show your achievements separately like Won ABC Hackathon, ICPC Regional finalist, etc

Final outcome of the interviewSelected

Skills evaluated in this interview

Get interview-ready with Top Microsoft Corporation Interview Questions

Interview questions from similar companies

SDE-2 Interview Questions & Answers

Atlassian user image komal kungwani

posted on 15 Mar 2024

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Leetcode Interview Question company tag atlassian. Some modifications of those
Round 2 - Technical 

(1 Question)

  • Q1. Design a web crawler
  • Ans. 

    Design a web crawler to fetch and index web pages

    • Start by defining the scope of the crawler (e.g. which websites to crawl)

    • Implement a system to fetch web pages using HTTP requests

    • Parse the HTML content to extract relevant information (e.g. links, text)

    • Store the extracted data in a database or index for later retrieval

    • Implement a scheduling mechanism to prioritize and manage the crawling process

  • Answered by AI

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

Zoho user image Anonymous

posted on 16 Sep 2021

I was interviewed in Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

  • Q1. 

    Make Palindrome Problem Statement

    You are provided with a string STR of length N comprising lowercase English alphabet letters. Your task is to determine and return the minimum number of characters that n...

  • Q2. 

    Wildcard Pattern Matching Problem Statement

    Implement a wildcard pattern matching algorithm to determine if a given wildcard pattern matches a text string completely.

    The wildcard pattern may include the...

Round 2 - Video Call 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

It was nice

  • Q1. What is BCNF and why is it important in database management systems?
  • Q2. You are given a rectangular container filled with 1 liter of liquid. How can you pour out half a liter without seeing or measuring it?
Round 3 - HR 

Round duration - 45 mintues
Round difficulty - Easy

Very nice interviews very helpful.

Interview Preparation Tips

Eligibility criteriaAbove 6 CGPAZoho Corporation interview preparation:Topics to prepare for the interview - Data Structures and Algorithm, Operating Systems, DBMS, Oops Concepts, Hashing, Computer Networks.Time required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Tip 1 : Mention the projects clearly, explaining the tech stack, the problem solved and whether its a group or individual project
Tip 2 : Do not put false things on resume.
Tip 3 : Mention only those skills, in which you are confident.

Application resume tips for other job seekers

Tip 1 : Mention your important projects in detail.
Tip 2 : Try to make a single-page resume. Highlight skills, projects, and work experience more than CGPA. Ensure proper spacing and font to maintain professionalism.
Tip 3 : Keep it precise and concise.
Tip 4 : Mention your achievements related to the role you are applying for.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Mar 2021.

Round 1 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round with questions on DSA.

  • Q1. 

    LRU Cache Design Question

    Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

    1. get(key) - Return the value of the key if it exists in the cache; otherw...

  • Q2. 

    Minimum Number of Platforms Problem

    Your task is to determine the minimum number of platforms required at a railway station so that no train has to wait.

    Explanation:

    Given two arrays:

    • AT - represent...
Round 2 - Face to Face 

(1 Question)

Round duration - 45 minutes
Round difficulty - Medium

Technical Interview round with DSA based questions.

  • Q1. 

    Reverse a Linked List Problem Statement

    You are given a Singly Linked List of integers. Your task is to reverse the Linked List by changing the links between nodes.

    Input:

    The first line of input contai...

Interview Preparation Tips

Eligibility criteriaAbove 1 years of experience24/7 customer private limited interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

Sde1 Interview Questions & Answers

UKG user image Anonymous

posted on 7 Aug 2024

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-

I applied via Approached by Company

Round 1 - Coding Test 

Aptitude and coding round, one coding question and others are computer fundamentals

Round 2 - Technical 

(2 Questions)

  • Q1. Return true if Subarray is present whose sum is 0
  • Q2. Project, oops, dbms
Round 3 - Technical 

(2 Questions)

  • Q1. Subarray sun equal to k
  • Q2. Project, oops, dbms
Round 4 - HR 

(1 Question)

  • Q1. Did not got slected i answered all still
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
Selected Selected
Round 1 - Technical 

(2 Questions)

  • Q1. Star pattern questions
  • Q2. Hashing implementation

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation SDE-2 interview?
Microsoft Corporation interview process usually has 5 rounds. The most common rounds in the Microsoft Corporation interview process are Coding Test, Resume Shortlist and Case Study.
What are the top questions asked in Microsoft Corporation SDE-2 interview?

Some of the top questions asked at the Microsoft Corporation SDE-2 interview -

  1. Find if a given string exists in a given matrix of charact...read more
  2. Get excel column address based on number giv...read more
  3. Video feed api des...read more

Tell us how to improve this page.

Interview Questions from Similar Companies

Accenture Interview Questions
3.9
 • 8.1k Interviews
IBM Interview Questions
4.0
 • 2.4k Interviews
Oracle Interview Questions
3.7
 • 896 Interviews
Google Interview Questions
4.4
 • 862 Interviews
Amdocs Interview Questions
3.8
 • 528 Interviews
Zoho Interview Questions
4.3
 • 511 Interviews
Cisco Interview Questions
4.1
 • 395 Interviews
Dell Interview Questions
4.0
 • 388 Interviews
View all
Microsoft Corporation SDE-2 Salary
based on 88 salaries
₹17 L/yr - ₹63 L/yr
20% more than the average SDE-2 Salary in India
View more details

Microsoft Corporation SDE-2 Reviews and Ratings

based on 9 reviews

4.0/5

Rating in categories

2.9

Skill development

4.4

Work-life balance

3.8

Salary

4.3

Job security

3.9

Company culture

2.9

Promotions

3.3

Work satisfaction

Explore 9 Reviews and Ratings
Software Engineer
2k salaries
unlock blur

₹13 L/yr - ₹51 L/yr

Senior Software Engineer
1.1k salaries
unlock blur

₹21 L/yr - ₹85 L/yr

Software Engineer2
994 salaries
unlock blur

₹20 L/yr - ₹70 L/yr

Consultant
598 salaries
unlock blur

₹13 L/yr - ₹36.7 L/yr

Support Engineer
560 salaries
unlock blur

₹7.6 L/yr - ₹30 L/yr

Explore more salaries
Compare Microsoft Corporation with

Google

4.4
Compare

Amazon

4.1
Compare

Deloitte

3.8
Compare

TCS

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview