Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Microsoft Corporation Interview Questions, Process, and Tips

Updated 8 Mar 2025

Top Microsoft Corporation Interview Questions and Answers

View all 735 questions

Microsoft Corporation Interview Experiences

Popular Designations

557 interviews found

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(3 Questions)

Round duration - 45 minutes
Round difficulty - Medium

It was an online round hosted on cocubes. It consisted of 3 coding questions only and the duration of the test was 45 mins. 
The test link with a unique id and password was sent to the email 1 day prior to the test day. It consisted to platform specification, sample test etc.

On the day of test, we were given a time slot of 5pm - 11pm. We could attempt the test as per our comfort.
The instructions were pretty straightforward and we could attempt it from anywhere. 

There were only 2 requirements. A webcam must be available. And a decent internet. 

About the Platform. 
In all of the problems base classes and code were disabled, we needed to implement only certain classes/ functions. Clipboard copy was blocked, tab switching was not allowed and rest the platform is very basic and simple.

  • Q1. 

    Add Two Numbers Represented by Linked Lists

    Given two singly linked lists, each representing a positive number without leading zeros, your task is to add these two numbers. The result should be returned a...

  • Ans. 

    Add two numbers represented by linked lists and return the sum as a linked list.

    • Traverse both linked lists simultaneously while keeping track of carry.

    • Create a new linked list to store the sum.

    • Handle cases where one linked list is longer than the other.

    • Update the next pointer of the current node to point to the new node with the sum.

    • Handle the carry if it exists after reaching the end of both linked lists.

  • Answered by AI
  • Q2. 

    Maximum Subarray Sum Problem Statement

    Given an array 'ARR' of integers with length 'N', the task is to determine the sum of the subarray (including an empty subarray) that yields the maximum sum among al...

  • Ans. 

    Find the maximum sum of a subarray in an array of integers.

    • Iterate through the array and keep track of the maximum sum subarray ending at each index.

    • Use Kadane's algorithm to efficiently find the maximum subarray sum.

    • Consider the case where all elements are negative, in which case the maximum sum would be the largest negative number.

  • Answered by AI
  • Q3. 

    Sum of Leaf Nodes at Maximum Level Problem Statement

    Given a binary tree of integers, your task is to calculate the sum of all the leaf nodes which are present at the deepest level of the binary tree. If ...

  • Ans. 

    Calculate the sum of leaf nodes at the deepest level of a binary tree.

    • Traverse the binary tree to find the deepest level.

    • Keep track of leaf nodes at the deepest level and calculate their sum.

    • Handle null nodes represented by -1.

    • Ensure the sum fits in a 32-bit integer.

  • Answered by AI
Round 2 - Group Discussion 

Round duration - 60 minutes
Round difficulty - Hard

This round is known as the group fly round. After clearing the first round, we were called at the Microsoft Gurgaon office for the face to face interviews. Approximately, 60 students were there on the day I was called. I guess there were multiple days for multiple slots.

We all were divided into groups of 6-8 people and were called inside a round table room with 1 interviewer. This round consisted of 1 problem only to be discussed over with the interviewer. And the solutions to be written on pen paper. 

The key here is to walk through the thought process and the steps with the interviewer. He will go around the table and will have discussion with each one of us and discuss about the pros, cons of the solutions.

It is advisable to ask as many questions as possible, to gather requirements and to be sure what are the expectations.
 

Round 3 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

This was the first face to face round. 
It was held just after the group fly. From my group fly slot, 2/7 were selected. 
The interviewer made me comfortable, we started informal talks about college and hobbies. 

It kicked off with some basic discussion of the previous round problems, he had some questions about the encryption and security related stuff from payment scenario. 

Then there were some behavioral questions and lastly there were a couple of whitepaper coding questions.

  • Q1. 

    N-Queens Problem Statement

    Given an integer N, your task is to position N queens on an N x N chessboard in such a way that no two queens threaten each other.

    A queen can attack other queens that are in t...

  • Ans. 

    Position N queens on an N x N chessboard so that no two queens threaten each other.

    • Use backtracking to explore all possible configurations.

    • Keep track of rows, columns, and diagonals to ensure no two queens threaten each other.

    • Display all valid configurations found.

  • Answered by AI
  • Q2. 

    Left View of a Binary Tree Problem Statement

    Given a binary tree, your task is to print the left view of the tree.

    Example:

    Input:
    The input will be in level order form, with node values separated by a...
  • Ans. 

    Print the left view of a binary tree given in level order form.

    • Traverse the tree level by level and print the first node of each level (leftmost node).

    • Use a queue to keep track of nodes at each level.

    • Time complexity should be O(n) where n is the number of nodes in the tree.

  • Answered by AI
Round 4 - Face to Face 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Easy

This was the second face to face. Almost 50% students were selected from the first face to face round. 
This was very straightforward round, a hectic day and it was already late by now. 
The interviewer started with formal introduction and gave me 2 very basic problems to code. 

This code consists of writing the entire code from scratch on whitepaper, with unit tests that can cover almost all scenarios. Some sample test cases were given by the interviewer at the end, to validate and dry run my solution.

  • Q1. 

    Cycle Detection in a Linked List

    Determine if a given Singly Linked List of integers forms a cycle or not.

    Explanation:

    A cycle occurs when a node's next points back to a previous node in the list. This...

  • Ans. 

    Detect if a singly linked list forms a cycle by checking if a node's next pointer points back to a previous node.

    • Traverse the linked list using two pointers, one moving one step at a time and the other moving two steps at a time.

    • If the two pointers meet at any point, there is a cycle in the linked list.

    • If one of the pointers reaches the end of the list (null), there is no cycle.

  • Answered by AI
  • Q2. 

    Maximum Path Sum Between Two Leaves of a Binary Tree Problem Statement

    You are provided with a non-empty binary tree where each node has a non-negative integer value. Compute and return the maximum possib...

  • Ans. 

    Find the maximum path sum between two leaves in a binary tree.

    • Traverse the binary tree to find the maximum path sum between two leaves.

    • Keep track of the maximum sum encountered during traversal.

    • Consider all possible paths that include leaf nodes.

    • Handle cases where there is only one leaf node or no leaf nodes.

    • Implement a recursive function to calculate the maximum path sum.

  • Answered by AI
Round 5 - HR 

Round duration - 30 minutes
Round difficulty - Easy

This was the final round. 
It was very late in the evening, around 10pm. 
The interviewer here was one of the senior manager in the org (M2). 

This kicked off with very informal conversations and introductions. 
The interviewer was very engaging.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in HyderabadEligibility criteriaMin 7.5 CGPA was requiredMicrosoft interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Designs, Operating Systems, DBMSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Be solid with the basics of Ds, Algo. Good to have end to end projects which are hosted on cloud.
Tip 2 : Its always good to be presentable and have good communications skills
Tip 3 : Be honest, clear in approach and always walkthrough your thought process to the interviewer

Application resume tips for other job seekers

Tip 1 : Mention your projects and experience at the top. Be clear on what was done, a brief on how it was done, language /tech stack involved. If possible try to host and make it accessible. You never know if you can present it with just one click.
Tip 2 : Choose a balance between, white spaces and text, it should be well indented, no grammatical errors.
Tip 3 : It takes less than 2 min to scan a resume. Don't mention things which are irrelevant.

Final outcome of the interviewSelected

Skills evaluated in this interview

Top Microsoft Corporation Software Developer Interview Questions and Answers

Q1. Buses Origin Problem Statement You have been provided with an array where each element specifies the number of buses that can be boarded at each respective bus stop. Buses will only stop at locations that are multiples of the bus stop they ... read more
View answer (3)

Software Developer Interview Questions asked at other Companies

Q1. Maximum Subarray Sum Problem Statement Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array. Example: Input: array = [34, -50, 42, 14, -5, 86] Output: 137 Explanation: The maximum sum is... read more
View answer (42)

I applied via Company Website and was interviewed before Feb 2019. There were 5 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. How this role will take me for more better opportunities

Interview Preparation Tips

Interview preparation tips for other job seekers - Interview conducted by 4 different people on 4 different slots by eating up my whole day, all 4 rounds went very well which made me feel as i am selected 100% as matches their requirements however after wasting my whole 1 day for these 4 rounds they simply asked me to leave for the day and aftee chasing them over multiple emails and calls to update me with the status they simply said they hired some other person resulting in my confidence level horribly down. HR gave me rude shock that my profile doesn't match their requirement which during the interview it was guaranteed by interviewer that my profile is fully suitable then how this total shift in mindset happened between HR and the interviewer i didn't understand until now. Also HR gave me fake promise that i am almost clear for this role.

Executive/ Sr Executive - Administration Interview Questions asked at other Companies

Q1. Imagine there are 7 people in the room and there are 7 apples in the basket. Everyone took one apple still one left in the basket. How?
View answer (2)

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 90 minutes
Round difficulty - Hard

Online coding contest, focus on DP and trees

  • Q1. 

    Chess Tournament Problem Statement

    In Ninjaland, a chess tournament is being organized with C chess players attending. They will all stay in a hotel that has N available rooms. Each player will choose one...

  • Ans. 

    Assign rooms to chess players to maximize overall focus level by minimizing distance between rooms.

    • Sort the positions of rooms in ascending order.

    • Calculate the distances between adjacent rooms.

    • Select rooms with minimum distances to maximize overall focus level.

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 45 minutes
Round difficulty - Hard

It was conducted on the GHCI conference itself. It was held in a Microsoft interview room at the career fair of the conference. This was primarily based on my coding abilities and understanding how to optimise a solution

  • Q1. 

    Check Word Presence in String

    Given a string S and a list wordList containing N distinct words, determine if each word in wordList is present in S. Return a boolean array where the value at index 'i' indi...

  • Ans. 

    Given a string and a list of words, check if each word in the list is present in the string and return a boolean array.

    • Iterate through each word in the wordList and check if it is present in the string S.

    • Use a boolean array to store the presence of each word in the string.

    • Remember that the presence of a word is case sensitive.

    • Do not use built-in string-matching methods.

    • Return the boolean array without printing it.

  • Answered by AI
Round 3 - Face to Face 

Round duration - 30 minutes
Round difficulty - Medium

This was a system design round.

Round 4 - HR 

Round duration - 20 minutes
Round difficulty - Easy

This was the HR round and only typical HR questions were asked.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Delhi Technological University. I applied for the job as SDE - 1 in HyderabadEligibility criteriaCV shortlistedMicrosoft interview preparation:Topics to prepare for the interview - Data structures and algorithms, trees, dynamic programming, operating systemTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Practice implementation of code end to end
Tip 2 : CV should have many projects and published paper to be shortlisted
Tip 3 : Focus on optimization 

Application resume tips for other job seekers

Tip 1 : Include projects in your resume.
Tip 2 : Keep resume of one page, but utilize the entire page efficiently

Final outcome of the interviewSelected

Top Microsoft Corporation Software Developer Interview Questions and Answers

Q1. Buses Origin Problem Statement You have been provided with an array where each element specifies the number of buses that can be boarded at each respective bus stop. Buses will only stop at locations that are multiples of the bus stop they ... read more
View answer (3)

Software Developer Interview Questions asked at other Companies

Q1. Maximum Subarray Sum Problem Statement Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array. Example: Input: array = [34, -50, 42, 14, -5, 86] Output: 137 Explanation: The maximum sum is... read more
View answer (42)

Sdet Interview Questions & Answers

user image Anonymous

posted on 5 Jun 2015

Interview Questionnaire 

4 Questions

  • Q1. Given a M x N 2D array containing random alphabets and a function Dict(string word) which returns whether the 'word' is a valid English word. Find all possible valid words you can get from the 2D array, wh...
  • Ans. 

    Given a 2D array of alphabets and a function to check valid English words, find all possible valid words adjacent to each other.

    • Create a recursive function to traverse the 2D array and check for valid words

    • Use memoization to avoid redundant checks

    • Consider edge cases such as words with repeating letters

    • Optimize the algorithm for time and space complexity

  • Answered by AI
  • Q2. Given a circular linked list containing sorted elements (int value). The head of the linked list points to a random node (not necessarily to the smallest or largest element). Problem is top write a code wh...
  • Ans. 

    Insert a node at its correct position in a circular linked list containing sorted elements.

    • Traverse the linked list until the correct position is found

    • Handle the case where the value to be inserted is smaller than the smallest element or larger than the largest element

    • Update the pointers of the neighboring nodes to insert the new node

    • Consider the case where the linked list has only one node

  • Answered by AI
  • Q3. Suppose you are asked to design the Contacts feature for a mobile, what are the features you will enable for the same? Also, how will you test each of those feature?
  • Q4. Describe how does the McDonald's system work, starting from placing the order, transferring of the order to kitchen, billing and the final delivery to customer, in terms of data structures used, informatio...

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

Sdet Interview Questions asked at other Companies

Q1. Given a M x N 2D array containing random alphabets and a function Dict(string word) which returns whether the 'word' is a valid English word. Find all possible valid words you can get from the 2D array, where the alphabets are adjacent to e... read more
View answer (1)

Microsoft Corporation interview questions for popular designations

 Software Engineer

 (65)

 Software Developer

 (62)

 Senior Software Engineer

 (28)

 Software Developer Intern

 (24)

 Intern

 (20)

 Technical Support Engineer

 (14)

 Software Development Engineer

 (11)

 Data Scientist

 (10)

Sdet Interview Questions & Answers

user image Anonymous

posted on 5 Jun 2015

Interview Questionnaire 

9 Questions

  • Q1. First one was to find position of a box in a particular grid(4*4) boxes were numbered 0 to 15.Questions was also to write test cases and check every possibilty
  • Q2. Second question was card shuffling problem
  • Q3. One question was think how the database design of Facebook could be
  • Q4. And there were few more coding questions on data structures
  • Q5. It was basically 1 question round but that had two parts . one designing the algorithm optimally . And writting and covering all possible scenarios and write test cases for them.It was based on deleting el...
  • Q6. This round covered Data structure based prograaming as well OS concepts on multithreading as well
  • Q7. One question was to design data structures to delete pages from a web server which are no longer in existense and have no link on website .That is pages which have expired and no longer in use and has no r...
  • Q8. One question to desgin lift system and waht whould be the design
  • Q9. This was the last round .Questions based on college projects and training project was asked.A question was asked to design an algorithm for a new type of contact search application of mobile phones

Interview Preparation Tips

Round: Test
Experience: 10 Objective type questions mainly from data structures.Questions on structures,union , trees,graphs etc First question was purely coding in most optimized way and taking care of all conditions possible. Second Question was to write test cases for print server job execution getting print jobs from different hostels of a college. Third question was to design a Data structure for a billing system keeping in mind certain conditions and write a program to generate and store the bills.
Total Questions: 10

College Name: NA

Sdet Interview Questions asked at other Companies

Q1. Given a M x N 2D array containing random alphabets and a function Dict(string word) which returns whether the 'word' is a valid English word. Find all possible valid words you can get from the 2D array, where the alphabets are adjacent to e... read more
View answer (1)

Get interview-ready with Top Microsoft Corporation Interview Questions

Interview Questionnaire 

12 Questions

  • Q1. Tell me about your projects 2) Show me how Binary search works
  • Ans. 

    Answering two questions: about my projects and demonstrating Binary search

    • For my projects, I have managed various software development projects from initiation to closure

    • I have experience in Agile and Waterfall methodologies, stakeholder management, risk management, and budgeting

    • For Binary search, it is a search algorithm that works by repeatedly dividing the search interval in half

    • It requires a sorted array and compar...

  • Answered by AI
  • Q2. Show me how Binary search works
  • Ans. 

    Binary search is a search algorithm that finds the position of a target value within a sorted array.

    • Start by comparing the target value with the middle element of the array.

    • If the target value matches the middle element, return its position.

    • If the target value is less than the middle element, search the left half of the array.

    • If the target value is greater than the middle element, search the right half of the array.

    • Rep...

  • Answered by AI
  • Q3. What is its complexity
  • Ans. 

    The complexity of what?

    • Please provide more context or specify what you are referring to

    • Complexity can refer to various aspects such as technical, organizational, or project-related

    • It can also be measured using different methods such as time, cost, or scope

  • Answered by AI
  • Q4. When a sorted array is ‘Rotated’, its last element becomes the first element and the remaining elements shift to the right. Write a function which takes an input array and returns the no. of times an array...
  • Ans. 

    Function to find the no. of times a sorted array has been rotated.

    • Find the index of the minimum element in the array using binary search.

    • The number of times the array has been rotated is equal to the index of the minimum element.

    • Handle the case where the array is not rotated (minimum element at index 0).

  • Answered by AI
  • Q5. ) Implement the above with logarithmic Complexity
  • Ans. 

    Implementing a program with logarithmic complexity

    • Use binary search instead of linear search

    • Divide and conquer approach can be used

    • Tree-based data structures can be used

    • Examples: Binary search, Merge sort, Quick sort

  • Answered by AI
  • Q6. Write Code for Binary Search
  • Ans. 

    Code for Binary Search

    • Binary search is a divide and conquer algorithm

    • It works by repeatedly dividing the search interval in half

    • If the value is found, return the index

    • If the value is not found, return -1

  • Answered by AI
  • Q7. Write Test Cases for Your function and Binary Search
  • Ans. 

    Test cases for function and binary search

    • Test function with different input values and expected output

    • Test binary search with sorted array and non-existent element

    • Test binary search with unsorted array and existing element

    • Test binary search with empty array

    • Test binary search with array containing only one element

  • Answered by AI
  • Q8. Final interview: 1) Why do you want to be a PM
  • Ans. 

    I want to be a PM because I enjoy leading teams and driving projects to success.

    • I have a passion for organization and planning

    • I thrive in a fast-paced environment

    • I enjoy collaborating with cross-functional teams

    • I have a track record of delivering projects on time and within budget

    • I am motivated by seeing the impact of my work on the business

    • For example, in my previous role as a project lead, I successfully managed a te...

  • Answered by AI
  • Q9. If you are selected, what would you want to work on at Microsoft and why
  • Ans. 

    I would like to work on developing innovative products that can make a positive impact on people's lives.

    • I am passionate about creating technology that can improve people's daily lives

    • I am interested in exploring new ideas and pushing the boundaries of what is possible

    • I would like to work on projects that have a clear purpose and can make a difference in the world

    • For example, I would be excited to work on developing ne...

  • Answered by AI
  • Q10. Design the Navigation system (Forward and Back Buttons) of a Net Browser with Data Structures
  • Ans. 

    Design navigation system for a net browser with data structures.

    • Use a stack data structure to implement the back button functionality

    • Use a queue data structure to implement the forward button functionality

    • Maintain a history of visited pages using a hash table

    • Update the history on every page visit

    • Disable the back button if there is no previous page in the history

    • Disable the forward button if there is no next page in the

  • Answered by AI
  • Q11. Design a remote of 5 keys, what would you do
  • Ans. 

    Designing a remote of 5 keys

    • Identify the purpose of the remote

    • Determine the most frequently used functions

    • Consider the ergonomics and ease of use

    • Include clear labeling and intuitive design

    • Test and iterate for user feedback

  • Answered by AI
  • Q12. Write an API for a button
  • Ans. 

    API for a button

    • Define the button's properties such as size, color, and label

    • Create a function to handle the button click event

    • Return the button element with the defined properties and click function

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: 1) Objective Paper - i)Basic C questions
ii) DS questions covering Graphs and Trees
iii) Analysis of Algo. Questions.
iv) There were more but I can’t remember


Round: Problem Statement
Experience: I attempted question Number 3 very well which was also brought up in my 3rd tech Interview. It was what got me through I assume.

Screening Test: 6-8 people in a room were taken and were given the following problem to solve -
“ There are two given sorted Linked lists. Merge them to form a single sorted Linked list. In case of duplicates, delete copies”
In one batch, people were also told to write test cases.

Tips: Speed, Accuracy and Covering as many cases which may arise as possible in the code
Points where every VJTIan committed mistakes - !) In case of duplicates, only one node was inserted into the single linked list, but nobody freed up the memory of the other node by using free. they expect that.
2) modularization - In case one of the linked lists is over, we simply append the remaining elements of the other array into the single linked list. This was expected to be done by a single function taking parameters.

Why I cleared - Finished Coding around 12 mins before everybody and committed no mistakes which others made. The above two are the only things I didn’t do


Round: Technical Interview
Experience: No. 2 - 1) Design an Offline Browsing Experience
An one and half hour discussion was held on this, where he asked me Line of thought in designing the product, the thinking behind various proposed features, Made changes in the requirements, told to propose new features as per new requirements for at least 4 features, How will you implement the feature - show UI and block Diagram, what data structures will you use for the feature etc etc.
Was checking Designing aptitude and how many new features proposed

No 3 - 1)How will you implement an N-ary tree (N has no limit) and write code for BFS on that N-ary tree based on the implementation
Gave her Three implementations. She only settled for the one which She wanted
2) Write code foe the node of the tree and the above BFS

3) The weight of the node is given as Value of node*level of node. Write a function which returns the address of a node with the MAXWEIGHT in a binary tree
I gave Non-recursive solution. She then asked for a recursive solution
Code for both Recursive and Non-recursive she made me write

4) Given an array of n elements which have numbers in the range of 0 to n-1, find if the array has any duplicate elements

5) Write code to return position of the duplicate element
Was just checking coding knowledge
Tips: 1) Accuracy is not very important, approach is. If you are wrong, you should be able to tell why you are wrong before the interviewer tells you. The interviewers help a lot, but getting the correct solution is required
2) Write as tight code as possible in aptis and interviews. From freeing nodes, to returning boolean instead of Int, to Using struct instead of two separate variables, every bit of efficiency is appreciated and earns you a lot of points
3) Keenness to learn is a very important quality which they see when they are considering a PM candidate. It is hard to fake that. They usually deduce it by the way you talk.
4) For PM, they take the ‘Do you have a question for me’ very very seriously. Ask genuine questions and don’t ask rubbish. People are usually good and teach you a lot when you ask them good questions
5) The Microsoft process is meticulous and you will enjoy it if you love solving puzzles. An opportunity to show your talent or aptitude is given to you if you ask.
6) For people looking for PM, read a lot(Newspapers/tech blogs/technologies), think a lot - that’s all you can do for it.

College Name: Veermata Jijabai Technological Institute, Mumbai [ VJTI ]

Skills evaluated in this interview

Top Microsoft Corporation Program Manager Interview Questions and Answers

Q1. When a sorted array is ‘Rotated’, its last element becomes the first element and the remaining elements shift to the right. Write a function which takes an input array and returns the no. of times an array has been rotated
View answer (1)

Program Manager Interview Questions asked at other Companies

Q1. Use case scenario - in case a new engagement is awarded to Infosys, share how do you manage that Project/Program?
View answer (9)

SDE Intern Interview Questions & Answers

user image Anonymous

posted on 12 May 2015

Interview Questionnaire 

17 Questions

  • Q1. Given a Y- linked list. Find the node at the intersection point
  • Ans. 

    Given a Y-linked list, find the node at the intersection point.

    • Traverse both branches of the Y-linked list and compare nodes.

    • Use a hash table to store visited nodes and check for intersection.

    • If one branch is longer, traverse it until it matches the length of the other branch.

  • Answered by AI
  • Q2. Given a string of containing lower case letters and upper case characters. Find the number of occurrences of each character. The question was further modified to include the special characters as well. I w...
  • Ans. 

    Count the occurrences of each character in a given string including special characters.

    • Create test cases for empty string

    • Test for string with only one character

    • Test for string with all characters being the same

    • Test for string with all characters being different

    • Test for string with special characters

  • Answered by AI
  • Q3. Remove duplicate characters from a given string keeping only the first occurrences (i.e order should not change). For ex- if the input is ‘bananas’ the output will be ‘bans’. -----/ (second method)
  • Ans. 

    Remove duplicate characters from a string while preserving order.

    • Create an empty string to hold the result.

    • Iterate through each character in the input string.

    • If the character is not already in the result string, add it.

    • Return the result string.

  • Answered by AI
  • Q4. I was asked to introduce myself
  • Q5. Then there were couple of questions on the project i was working on. As my project was in java as the front end and oracle as the back end, i was asked few questions on multithreading and sql
  • Q6. I was then asked to explain the logic and the code to traverse a binary tree level by level but in spiral form. -----/
  • Q7. Logic and the code for the lowest common ancestor in a binary search tree. -----/
  • Q8. Complexity of both the above codes and why such complexities
  • Ans. 

    The complexity of the codes depends on the number of operations and loops used.

    • The first code has a complexity of O(n) as it uses a single loop to iterate through the array.

    • The second code has a complexity of O(n^2) as it uses nested loops to compare each element with every other element in the array.

    • The complexity of a code can also depend on the type of operations used, such as sorting or searching.

    • Complexity can be ...

  • Answered by AI
  • Q9. Brief me about your academic history
  • Ans. 

    I have a strong academic background with a focus on computer science and engineering.

    • Graduated with a Bachelor's degree in Computer Science from XYZ University

    • Completed a Master's degree in Electrical Engineering from ABC University

    • Took courses in data structures, algorithms, programming languages, and computer networks

    • Participated in various coding competitions and hackathons

    • Maintained a GPA of 3.8 throughout my acade

  • Answered by AI
  • Q10. What improvements can you do in your project? Are you working under a professor or just out of interest?
  • Ans. 

    I am working on this project out of interest and I believe I can improve it by implementing more advanced algorithms and incorporating user feedback.

    • Implement more advanced algorithms to improve accuracy

    • Incorporate user feedback to enhance user experience

    • Optimize code for faster performance

    • Add more features to increase functionality

  • Answered by AI
  • Q11. How would your peers describe you?
  • Ans. 

    My peers would describe me as a reliable and hardworking team player with excellent communication skills.

    • Reliable and consistent in meeting deadlines and completing tasks

    • Collaborative and supportive of team members

    • Clear and effective communicator, both verbally and in writing

    • Open to feedback and willing to learn and improve

    • Positive attitude and strong work ethic

  • Answered by AI
  • Q12. The project you are currently working on and why did you choose this?
  • Ans. 

    I am currently working on a web application for a client in the e-commerce industry.

    • The project involves developing a user-friendly interface for customers to browse and purchase products.

    • I chose this project because I have experience in web development and I find the e-commerce industry interesting.

    • I am also excited about the challenge of creating a seamless checkout process for customers.

    • The project requires collabor...

  • Answered by AI
  • Q13. How are you trying to improve?
  • Ans. 

    I am constantly seeking feedback and learning new skills to improve my performance.

    • Regularly seeking feedback from colleagues and supervisors

    • Attending workshops and training sessions to learn new skills

    • Setting personal goals and tracking progress towards them

    • Reflecting on past experiences and identifying areas for improvement

    • Reading industry publications and staying up-to-date with trends

  • Answered by AI
  • Q14. What keeps you motivated?
  • Ans. 

    The desire to learn and grow keeps me motivated.

    • Setting achievable goals

    • Celebrating small wins

    • Surrounding myself with positive people

    • Taking breaks and practicing self-care

    • Remembering my purpose and passion

    • Continuously learning and seeking new challenges

  • Answered by AI
  • Q15. How would your professors describe you and what are your weaknesses according to them?
  • Ans. 

    My professors would describe me as hardworking and detail-oriented. They have pointed out my weakness in public speaking.

    • Professors would describe me as hardworking and detail-oriented

    • Weakness in public speaking has been pointed out

    • Received positive feedback on assignments and projects

    • Collaborates well with classmates and participates in group discussions

  • Answered by AI
  • Q16. Why Microsoft?There were few other questions which i can’t recall now :p
  • Q17. What are your Short term and Long term goals?
  • Ans. 

    Short term goal is to learn and contribute to the company. Long term goal is to grow professionally and take on leadership roles.

    • Short term goal: Learn new skills and technologies

    • Short term goal: Contribute to the company's success

    • Long term goal: Grow professionally and take on leadership roles

    • Long term goal: Build a strong network in the industry

    • Long term goal: Achieve financial stability

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: time- 30 minutes.This was conducted on CoCubes.com ,there were around 25 questions of varying level of difficulty. Topics: C , C++ , Aptitude.Around 60 students out of 150 were shortlisted for the next round.

Round: Test
Experience: time – 90 minutesThis was conducted on the same day. There were two questions of data structure.1) Write a function to check whether the parenthesis ( “( )”, “{ }” , “[ ]” ) in a given string are balanced or not.

-----) Write a recursive function to make a list from two given Linked lists, that contain intersection of the elements present in the given lists inplace.37 students were shortlisted for the next round.

Round: Technical Interview
Experience: Time- 35 minsThe interview started with my introduction. Then there was a long discussion on my project. He told me the flaws in my project and asked me to tell how would i deal with them.

1) Given two arrays of integers( in random order), how would u determine the rank of an element.

For ex: let the two arrays be

     46 32 16 73 57 2 and

     86 7 98 3 75     rank (46) = 6

     rank (86) = 10

     rank (2) = 1i don’t remember the exact question but it was similar to this. Fairly simple. I suggested some approaches and i was expected to come out with the best approach.

then i was asked to code my solution and design the test cases for the same.2) I was asked about my favorite subject.3)Write and explain the code to connect nodes at same level in a binary tree.

----- after the fourth round some of us were called for the next round.

Round: HR Interview
Experience: It was the last round. It went pretty well.The experience was awesome and i found that the people over there are very humble and i really liked their helping attitude.

Round: Technical Interview
Experience: I was asked questions on OS-
-Differentiate between mutex and semafore variables?– What does a thread and a process share in common?– What is a deadlock ?
There were few questions on C++.– Polymorphism and runtime polymorphism.– What is a virtual destructor?I was asked if i had any queries and i asked about the work that interns will get to do in microsoft and the interview ended.Only 9 were shortlisted for the further interviews. I was lucky enough to be one of them.We were called to Microsoft India Development Center, Hyderabad.

General Tips: Some interview tips-Stay calm, CONFIDENT and keep yourself motivated.Be honest.Try to keep your approach clean and don’t mess up things in your’s as well as interviewer’s mind.Don’t think about the results, just enjoy the interview process with a free mindFocus on building your concepts strong.
College Name: NA

Skills evaluated in this interview

SDE Intern Interview Questions asked at other Companies

Q1. Given a string of containing lower case letters and upper case characters. Find the number of occurrences of each character. The question was further modified to include the special characters as well. I was asked to design the test cases f... read more
View answer (2)

Software Engineer Interview Questions & Answers

user image Sachin Sridhar

posted on 21 Aug 2016

I applied via Campus Placement

Interview Questionnaire 

6 Questions

  • Q1. Testing whether every left child's value is less than the right child's value in a binary tree
  • Ans. 

    To test if every left child's value is less than the right child's value in a binary tree.

    • Traverse the binary tree using any traversal algorithm (e.g., in-order, pre-order, post-order)

    • Compare the value of each left child with its right child

    • If any left child's value is greater than or equal to its right child's value, return false

    • If all left child's values are less than their right child's values, return true

  • Answered by AI
  • Q2. Cloning a linked list-like structure
  • Ans. 

    Cloning a linked list-like structure

    • Create a new node for each node in the original linked list

    • Set the value of the new node to the value of the corresponding node in the original linked list

    • Set the next pointer of the new node to the new node corresponding to the next node in the original linked list

    • Repeat the above steps until all nodes in the original linked list are cloned

  • Answered by AI
  • Q3. Finding the nth character in a stream of bytes
  • Ans. 

    To find the nth character in a stream of bytes, we need to read the stream byte by byte until we reach the nth position.

    • Start reading the stream byte by byte until you reach the nth position

    • Return the byte at the nth position

    • If the stream ends before reaching the nth position, return null or throw an exception

  • Answered by AI
  • Q4. Rearranging a string so no consecutive characters are the same
  • Ans. 

    Rearrange a string to avoid consecutive same characters.

    • Iterate through the string and keep track of the previous character.

    • If the current character is the same as the previous, swap it with the next different character.

    • Repeat until no consecutive same characters are left.

  • Answered by AI
  • Q5. Finding the next highest palindrome
  • Ans. 

    The task is to find the next highest palindrome number given a number.

    • Convert the given number to a string

    • Check if the number is already a palindrome

    • If not, increment the number by 1 and check if it is a palindrome

    • Repeat the previous step until a palindrome is found

  • Answered by AI
  • Q6. To canonicalize a directory path
  • Ans. 

    Canonicalizing a directory path involves simplifying and standardizing the path to remove any redundant or unnecessary elements.

    • Remove any consecutive slashes and replace them with a single slash

    • Remove any trailing slashes

    • Resolve any relative paths (e.g., '..' and '.')

    • Handle special cases like the root directory ('/')

    • Normalize the path by removing any unnecessary elements

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The test started an hour late, which could have been avoided with some better planning. The test experience was pretty good for me since I am used to using HackerRank's online platform for competitive coding.
Tips: Maybe a little sample session before the actual test would help.
Duration: 75 minutes

Round: Technical Interview
Experience: I enjoyed the interview experience; the panel was friendly and encouraging.

General Tips: Nice interview, questions were well thought out.
Skills: Algorithms And Data Structures
Duration: 2
College Name: IIT Madras
Motivation: What interests me about Microsoft is the nature and the scale of the work they're doing. Every day they impact billions of people worldwide, and I would love to be a part of this organization.

Skills evaluated in this interview

Top Microsoft Corporation Software Engineer Interview Questions and Answers

Q1. You have a cuboid (m*n*p) each block of the cuboid is having a metallic ball. Now we are passing X-ray from front face and getting a bool matrix1 of m*p the elements are set if there is a black spot.(as we are passing X-ray) and another mat... read more
View answer (1)

Software Engineer Interview Questions asked at other Companies

Q1. Bridge and torch problem : Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person... read more
View answer (205)

Software Engineer Interview Questions & Answers

user image Girish Raguvir J

posted on 21 Aug 2016

I applied via Campus Placement

Interview Questionnaire 

1 Question

  • Q1. Algorithmic Coding, Testing, Databases & other CS Concepts

Interview Preparation Tips

Round: Test
Experience: Decent knowledge of coding was needed.Speed was of essence.
Tips: Practice coding and be quick.
Duration: 75 minutes
Total Questions: 3

Round: Technical Interview
Experience: I had 3 technical interviews.The interviewers were very friendly.It involved writing paper on code which required me to be very precise and error free.
Tips: Practice coding.Practice writing code on paper and thinking out loud.

General Tips: Prepare well and be confident.
Skills: Unit Testing, Implementation Of Code Using OOPS, Database, Algorithms And Data Structures
Duration: 2
College Name: IIT Madras
Motivation: Microsoft.The company speaks

Top Microsoft Corporation Software Engineer Interview Questions and Answers

Q1. You have a cuboid (m*n*p) each block of the cuboid is having a metallic ball. Now we are passing X-ray from front face and getting a bool matrix1 of m*p the elements are set if there is a black spot.(as we are passing X-ray) and another mat... read more
View answer (1)

Software Engineer Interview Questions asked at other Companies

Q1. Bridge and torch problem : Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person... read more
View answer (205)

Interview Questions & Answers

user image Rahul Kejriwal

posted on 22 Aug 2016

I applied via Campus Placement

Interview Questionnaire 

4 Questions

  • Q1. Implement atoi()
  • Ans. 

    Implement atoi() function to convert a string to an integer.

    • Remove leading whitespaces

    • Handle positive and negative signs

    • Handle overflow and underflow cases

    • Return 0 if the input string is invalid

  • Answered by AI
  • Q2. Delete node from singly linked list given only node address(head not given)
  • Ans. 

    To delete a node from a singly linked list without the head node, copy the data from the next node to the current node and delete the next node.

    • Copy data from next node to current node

    • Update current node's next pointer to skip the next node

    • Delete the next node

  • Answered by AI
  • Q3. Find largest profit that can be made from buying and selling a stock once given 30 days price info
  • Ans. 

    The largest profit that can be made from buying and selling a stock once given 30 days price info.

    • Iterate through the price info and keep track of the minimum price seen so far

    • Calculate the difference between the current price and the minimum price

    • Update the maximum profit if the difference is greater than the current maximum profit

    • Return the maximum profit

  • Answered by AI
  • Q4. Given a 2n element array with n odd and n even nos, modify it so that all even indices have odd nos while odd indices have even nos
  • Ans. 

    Modify a 2n element array with n odd and n even numbers so that even indices have odd numbers and odd indices have even numbers.

    • Iterate through the array and swap odd numbers with even numbers at even indices.

    • Iterate through the array and swap even numbers with odd numbers at odd indices.

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: Simple questions to test coding skills. Pretty straightforward.
Tips: You can use only C, C++, and Java. Make sure you can code and debug fast in this round. Try to do all 3 to go directly to the interview.
Duration: 75 minutes
Total Questions: 3

Round: Technical Interview
Experience: 3 rounds of technical interview with varied questions.
Tips: Review data structures and algorithms. Try implementing standard functions like atoi(), strcpy() etc. with emphasis on corner cases,

General Tips: Keep cool. Interviewers are really nice. If you are stuck, tell them.
Skill Tips: Mostly based on conceptual understanding.
Skills:
Duration: 2
College Name: IIT Madras
Motivation: Great work environment. Good for writing to your CV and kickstarting your career.

Skills evaluated in this interview

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation interview?
Microsoft Corporation interview process usually has 2-3 rounds. The most common rounds in the Microsoft Corporation interview process are Technical, Coding Test and One-on-one Round.
How to prepare for Microsoft Corporation interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Microsoft Corporation. The most common topics and skills that interviewers at Microsoft Corporation expect are microsoft, Computer science, C++, Coding and Python.
What are the top questions asked in Microsoft Corporation interview?

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

  1. You are given infinite sequence of continuos natural numbers-1,2,3,4,5,6.........read more
  2. You have a cuboid (m*n*p) each block of the cuboid is having a metallic ball. ...read more
  3. Given a string of containing lower case letters and upper case characters. Find...read more
How long is the Microsoft Corporation interview process?

The duration of Microsoft Corporation interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Microsoft Corporation Interview Process

based on 375 interviews

Interview experience

4.2
  
Good
View more

Interview Questions from Similar Companies

Accenture Interview Questions
3.8
 • 8.1k Interviews
IBM Interview Questions
4.0
 • 2.3k Interviews
Oracle Interview Questions
3.7
 • 846 Interviews
Google Interview Questions
4.4
 • 823 Interviews
Amdocs Interview Questions
3.7
 • 514 Interviews
Dell Interview Questions
4.0
 • 386 Interviews
Cisco Interview Questions
4.1
 • 370 Interviews
SAP Interview Questions
4.2
 • 283 Interviews
Adobe Interview Questions
3.9
 • 233 Interviews
Intel Interview Questions
4.2
 • 214 Interviews
View all

Microsoft Corporation Reviews and Ratings

based on 1.7k reviews

4.0/5

Rating in categories

3.9

Skill development

4.0

Work-life balance

3.9

Salary

3.5

Job security

4.0

Company culture

3.4

Promotions

3.7

Work satisfaction

Explore 1.7k Reviews and Ratings
Software Engineer
1.6k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Software Engineer
1.1k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Software Engineer2
1k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Software Developer
762 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Consultant
600 salaries
unlock blur

₹0 L/yr - ₹0 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