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 in Dec 2016.

Interview Questionnaire 

9 Questions

  • Q1. Tell me about your internship experience.
  • Ans. 

    I had a 6-month internship at XYZ Company where I worked on developing a web application using Java and Angular.

    • Developed a web application using Java and Angular

    • Collaborated with a team of developers to design and implement new features

    • Participated in code reviews and debugging sessions

    • Gained experience in Agile development methodologies

  • Answered by AI
  • Q2. Discuss about a project mentioned in your CV.
  • Ans. 

    Developed a web-based inventory management system for a retail company.

    • Used Java and Spring framework to build the backend

    • Implemented a responsive user interface using HTML, CSS, and JavaScript

    • Integrated with a barcode scanner for efficient product tracking

    • Implemented role-based access control for different user roles

    • Optimized database queries for improved performance

  • Answered by AI
  • Q3. Given two words, find the similarity between them. You have to develop your own sense of similarity here. Normalize length of LCS by the total length of the string.
  • Ans. 

    The question asks to find the similarity between two words by developing our own sense of similarity.

    • Normalize the length of the Longest Common Subsequence (LCS) by dividing it by the total length of the string.

    • Implement a function that calculates the LCS between two words.

    • Divide the length of the LCS by the sum of the lengths of the two words.

    • Return the normalized similarity score as the result.

  • Answered by AI
  • Q4. Stress checking questions
  • Q5. Given a binary tree, return doubly linked list of all the nodes at each level.
  • Ans. 

    The function returns a doubly linked list of all the nodes at each level of a given binary tree.

    • Use a breadth-first search (BFS) algorithm to traverse the binary tree level by level.

    • Create a doubly linked list for each level and append the nodes to it.

    • Connect the doubly linked lists of each level to form the final result.

  • Answered by AI
  • Q6. Can you work under pressure?
  • Ans. 

    Yes, I thrive in high-pressure situations and have a proven track record of delivering quality work under tight deadlines.

    • I have successfully completed multiple projects on tight deadlines

    • I am able to prioritize tasks effectively to meet deadlines

    • I remain calm and focused under pressure to ensure quality work is delivered

  • Answered by AI
  • Q7. Tell me your achievements.
  • Ans. 

    I have achieved significant milestones in my career as a Senior Software Developer.

    • Developed and implemented a scalable and efficient software solution for a large e-commerce platform, resulting in a 30% increase in sales.

    • Led a team of developers to successfully deliver a complex project within a tight deadline, earning recognition from the client.

    • Optimized the performance of a critical software module, reducing its ex...

  • Answered by AI
  • Q8. How can you be an asset to the company?
  • Ans. 

    I can bring extensive experience in software development, strong problem-solving skills, and a proven track record of delivering high-quality solutions.

    • Extensive experience in software development

    • Strong problem-solving skills

    • Proven track record of delivering high-quality solutions

  • Answered by AI
  • Q9. Will you deliver your 100% in the job?
  • Ans. 

    Yes, I am committed to delivering my 100% in the job.

    • I am dedicated to producing high-quality code and meeting project deadlines.

    • I continuously strive to improve my skills and stay updated with the latest technologies.

    • I have a track record of successfully completing projects and exceeding expectations.

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The test had 3 questions as follows :
Q1. Rainwater Collection - Dynamic programming
Q2. DP / Memoization question
Q3. BFS Matrix Question
Tips: Have strong hold over topics like Dynamic Programming. Graph Theory, specially BFS and DFS.
Duration: 1 hour 30 minutes
Total Questions: 3

Round: Test
Experience: Both questions were based on implementation of puzzles and problems.
Tips: AD-HOC questions should be known and good coding skills with data structures and algorithms.
Duration: 45 minutes
Total Questions: 2

Round: Technical Interview
Experience: The interviewer asked me about my previous internships while in college and made me explain the work I did. Later on he asked me in detail about the projects I did in college.
Tips: Be prepared to explain your internship work and project work in details. You will be cross questioned. So be ready to answer everything related to them. Only enter those projects in your CV which you can explain confidently.

Round: Technical Interview
Experience: I was first asked a coding question related to finding similarity in two words and I had to define the terms of similarity on my own which I did by normalizing length of LCS by the total length of the string. Then I was faced with stress checking. They tried proving me wrong even though when I was right and checked my reaction under stress.
Tips: Be confident about your answers and act smart. Don't hesitate to explain and believe in your skills. Take criticism in a positive manner.

Round: Technical + HR Interview
Experience: A little coding questions were asked like binary trees, doubly linked lists etc. Then the usual HR questions like achievements, how would I be an asset to the company and all.
Tips: Think out loud. Communicate with the interviewer well. Clarify whatever you don't understand. Show them that you are passionate and excited to work with them. Show that you will give your best to help grow the company.

Skills: Coding Skills, Ability To Cope Up With Stress, Communication And Confidence, Logical And Structured Thinking, Data Structures
College Name: IIT Varanasi

Skills evaluated in this interview

Senior Software Developer Interview Questions asked at other Companies

Q1. Intersection of Linked List Problem You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list. Your task is to determine the data of the node at which they sta... read more
View answer (1)

I appeared for an interview in Dec 2016.

Interview Questionnaire 

9 Questions

  • Q1. Tell me about your internship experience.
  • Ans. 

    I completed a software development internship at a tech startup.

    • Developed a web application using React.js and Node.js

    • Worked on optimizing database queries for improved performance

    • Collaborated with a team of developers to troubleshoot and debug code

    • Participated in daily stand-up meetings to discuss progress and roadblocks

  • Answered by AI
  • Q2. Discuss about a project mentioned in your CV.
  • Ans. 

    Developed a web application for online shopping

    • Used HTML, CSS, and JavaScript for front-end development

    • Implemented backend using Node.js and MongoDB for database management

    • Integrated payment gateway for secure transactions

    • Implemented user authentication and authorization features

  • Answered by AI
  • Q3. Given two words, find the similarity between them. You have to develop your own sense of similarity here. Normalize length of LCS by the total length of the string.
  • Ans. 

    The question asks to find the similarity between two words by normalizing the length of the longest common subsequence (LCS) by the total length of the string.

    • Implement a function that takes two words as input

    • Find the length of the longest common subsequence (LCS) between the two words

    • Normalize the length of LCS by dividing it by the total length of the string

    • Return the normalized similarity value

  • Answered by AI
  • Q4. Stress checking questions
  • Q5. Given a binary tree, return doubly linked list of all the nodes at each level.
  • Ans. 

    The function takes a binary tree as input and returns a doubly linked list of all the nodes at each level.

    • Use a breadth-first search (BFS) algorithm to traverse the binary tree level by level.

    • For each level, create a doubly linked list and add the nodes to it.

    • Connect the doubly linked lists of each level to form the final result.

  • Answered by AI
  • Q6. Can you work under pressure?
  • Ans. 

    Yes, I can work well under pressure by staying organized, prioritizing tasks, and maintaining a positive attitude.

    • I have experience working on tight deadlines and delivering high-quality results.

    • I am able to stay calm and focused in stressful situations.

    • I prioritize tasks effectively to ensure that all deadlines are met.

    • I communicate effectively with team members to manage workload and expectations.

    • I maintain a positiv...

  • Answered by AI
  • Q7. Tell me your achievements.
  • Ans. 

    Led a team to successfully launch a new mobile app, resulting in a 50% increase in user engagement.

    • Led a team to develop and launch a new mobile app

    • Achieved a 50% increase in user engagement

    • Implemented new features based on user feedback

    • Collaborated with cross-functional teams to ensure project success

  • Answered by AI
  • Q8. How can you be an asset to the company?
  • Ans. 

    I can contribute my strong technical skills, problem-solving abilities, and passion for software development to drive innovation and success for the company.

    • I have a solid foundation in software development principles and practices

    • I excel at problem-solving and troubleshooting complex technical issues

    • I am passionate about staying up-to-date with the latest technologies and trends in the industry

  • Answered by AI
  • Q9. Will you deliver your 100% in the job?
  • Ans. 

    Yes, I am committed to giving my 100% in the job.

    • I am dedicated to meeting deadlines and exceeding expectations.

    • I have a strong work ethic and take pride in my work.

    • I am always looking for ways to improve and learn new skills.

    • I have a track record of delivering high-quality results in my previous roles.

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The test had 3 questions as follows :
Q1. Rainwater Collection - Dynamic programming
Q2. DP / Memoization question
Q3. BFS Matrix Question
Tips: Have strong hold over topics like Dynamic Programming. Graph Theory, specially BFS and DFS.
Duration: 1 hour 30 minutes
Total Questions: 3

Round: Test
Experience: Both questions were based on implementation of puzzles and problems.
Tips: AD-HOC questions should be known and good coding skills with data structures and algorithms.
Duration: 45 minutes
Total Questions: 2

Round: Technical Interview
Experience: The interviewer asked me about my previous internships while in college and made me explain the work I did. Later on he asked me in detail about the projects I did in college.
Tips: Be prepared to explain your internship work and project work in details. You will be cross questioned. So be ready to answer everything related to them. Only enter those projects in your CV which you can explain confidently.

Round: Technical Interview
Experience: I was first asked a coding question related to finding similarity in two words and I had to define the terms of similarity on my own which I did by normalizing length of LCS by the total length of the string. Then I was faced with stress checking. They tried proving me wrong even though when I was right and checked my reaction under stress.
Tips: Be confident about your answers and act smart. Don't hesitate to explain and believe in your skills. Take criticism in a positive manner.

Round: Technical + HR Interview
Experience: A little coding questions were asked like binary trees, doubly linked lists etc. Then the usual HR questions like achievements, how would I be an asset to the company and all.
Tips: Think out loud. Communicate with the interviewer well. Clarify whatever you don't understand. Show them that you are passionate and excited to work with them. Show that you will give your best to help grow the company.

Skills: Coding Skills, Communication And Confidence, Ability To Cope Up With Stress, Logical And Structured Thinking
College Name: IIT Varanasi

Skills evaluated in this interview

Top Microsoft Corporation Software Development Engineer Interview Questions and Answers

Q1. Given two words, find the similarity between them. You have to develop your own sense of similarity here. Normalize length of LCS by the total length of the string.
View answer (1)

Software Development Engineer Interview Questions asked at other Companies

Q1. Given an acyclic graph of a city where each edge represents a road in the city and each vertex represents an crossing. Write an algo to find out the minimum number of vertices at which a policemen will be kept so that all the roads are cove... read more
View answer (2)

Software Developer Intern Interview Questions & Answers

user image Srishti Bhatnagar

posted on 28 Jul 2017

I appeared for an interview in Apr 2017.

Interview Questionnaire 

5 Questions

  • Q1. String Compression
  • Ans. 

    String compression algorithm to reduce the size of a string by replacing repeated characters with a count.

    • Iterate through the string and count the number of consecutive occurrences of each character.

    • Append the character and its count to a new string.

    • If the compressed string is longer than the original string, return the original string.

    • Example: 'aabcccccaaa' -> 'a2b1c5a3'

  • Answered by AI
  • Q2. Circular Queue
  • Q3. Spiral Matrix
  • Q4. Some OS concepts
  • Q5. Project Related Questions

Interview Preparation Tips

Round: Technical Interview
Experience: We dicussed what can be the various approaches for string compression and then I was asked to code the encoding and decoding functions for the same.
Tips: Try to discuss as much as possible.Clear your doubts and speak your thoughts.

Round: Technical Interview
Experience: Again, it was a coding round.We discussed the approach, then I wrote the code and further discussions on optimisation.
Tips: Same.

Round: Technical + HR Interview
Experience: It was a short HR round but it was technical. Projects mentioned in the resume were discussed. Ideas, approach and concepts behind it were asked.
Tips: Explain as much as you can because this would help in giving them a clear picture of what you did and how you did it.

Skills: Problem Solving Abilties, Algorithmic Approach To Problem Solving, Data Structures
College Name: IGDTUW

Top Microsoft Corporation Software Developer Intern Interview Questions and Answers

Q1. Mean, Median, Mode Calculation You are given an array 'ARR' consisting of 'N' integers. Your task is to calculate the three statistical measures for the given array: Mean - Implement the function mean() to calculate the mean of the array. ... read more
View answer (1)

Software Developer Intern Interview Questions asked at other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an array ARR of size N, your objective is to determine the sum of the largest and smallest elements within the array. Follow Up: Can you achieve the above task using the least numb... read more
View answer (5)

Software Engineer Interview Questions & Answers

user image Sharmili Murthy

posted on 2 Dec 2016

I applied via Campus Placement and was interviewed in Jan 2016. There were 5 interview rounds.

Interview Questionnaire 

3 Questions

  • Q1. Finding a loop in a directed graph, find the last element in a binary tree
  • Ans. 

    To find a loop in a directed graph, use Floyd's cycle-finding algorithm. To find the last element in a binary tree, traverse the tree and return the rightmost leaf node.

    • For finding a loop in a directed graph, use Floyd's cycle-finding algorithm which uses two pointers moving at different speeds.

    • To find the last element in a binary tree, traverse the tree recursively or iteratively and return the rightmost leaf node.

  • Answered by AI
  • Q2. On circular queue and finding the last number which is highest and contains same number. Of digits a the given numbber
  • Ans. 

    The question is about finding the last number in a circular queue that has the highest number of digits.

    • Implement a circular queue data structure

    • Iterate through the circular queue to find the last number with the highest number of digits

    • Compare the number of digits of each number in the circular queue

    • Keep track of the last number with the highest number of digits

  • Answered by AI
  • Q3. Tell me your passions and what. Is the one thing I want to know about you

Interview Preparation Tips

Round: Test
Experience: Coding round based on logic was given
Tips: Practice coding
Duration: 2 hours
Total Questions: 3

College Name: IIT Madras

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)

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)

I applied via Campus Placement and was interviewed in Dec 2016. There were 6 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Circular queues, binary trees, recursion
  • Q2. Asked about project

Interview Preparation Tips

Round: Test
Experience: 3 very simple questions on hackerrank.
Duration: 1 hour 30 minutes
Total Questions: 3

Round: Group Discussion
Duration: 1 hour

Round: Technical Interview
Experience: Asked me to code up a simple question

College Name: IIT Madras

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)

Get interview-ready with Top Microsoft Corporation Interview Questions

Interview Questions & Answers

user image Vamsi Krishna

posted on 2 Dec 2016

I applied via Campus Placement and was interviewed in Dec 2016. There were 6 interview rounds.

Interview Questionnaire 

4 Questions

  • Q1. 2 coding questions, Projects,
  • Q2. Coding questions, Projects, ML, cloud, Parallel Computing
  • Q3. Discussions on projects
  • Q4. Redmond Interview

Interview Preparation Tips

Round: Test
Experience: Easy coding questions.
Duration: 2 hours
Total Questions: 3

Round: Group Discussion
Experience: Two coding questions and discussions.
Duration: 1 hour 30 minutes

Round: Technical Interview
Experience: Most of the focus on coding questions, and projects and discussions on other computer science topics.

Round: Technical Interview
Experience: With in 5 minutes round is finished.

Round: Technical + HR Interview
Experience: 3 Coding questions, Projects, Many HR questions, lot of disscusions on other cs topics.

College Name: IIT Madras

I applied via Campus Placement and was interviewed in Dec 2016. There was 1 interview round.

Interview Questionnaire 

3 Questions

  • Q1. Binary tree question. Check if left child is less than right child. Recursive and iterative implementation
  • Ans. 

    Check if left child is less than right child in a binary tree

    • Traverse the tree recursively and compare left and right child values

    • Use a stack to traverse the tree iteratively and compare left and right child values

    • Return true if all left children are less than right children, else false

  • Answered by AI
  • Q2. Check if a string is a substring in another string. Discussed speed (not time complexity). not neccessarily always correct but fast
  • Ans. 

    Use built-in string method to check substring presence for faster execution.

    • Use 'indexOf' method to check if substring is present in the main string.

    • If the method returns -1, the substring is not present.

    • If the method returns a non-negative integer, the substring is present.

  • Answered by AI
  • Q3. Maze question. write code on paper in 5 mins. automatically check if function is correct (not testcases)

Interview Preparation Tips

Round: Technical Interview
Tips: Practice writing code on paper

College Name: IIT Madras

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)

Sde1 Interview Questions & Answers

user image Anonymous

posted on 9 Feb 2017

I appeared for an interview before Feb 2016.

Interview Questionnaire 

2 Questions

  • Q1. The interviewer firstly asked about my internship - my role during the internship, the projects that I worked on and the completion status of the projects. Then he asked about my project- Library managemen...
  • Q2. Given two words determine the similarity between them
  • Ans. 

    The question asks to determine the similarity between two words.

    • Use a similarity metric like Levenshtein distance or cosine similarity

    • Normalize the words by converting them to lowercase and removing punctuation

    • Consider using a pre-trained word embedding model for semantic similarity

    • Implement a function that calculates the similarity score between two words

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: 3 questions were given
1. Rain water collection problem
2. Matrix DFS problem
3. DP problem
Tips: Practice all standard questions on practice.geeksforgeeks.org.
And other dp questions on Hackerearth and Hackerrank.
Duration: 1 hour 30 minutes
Total Questions: 3

Round: Group fly round
Experience: 2 questions were given
1. Convert number into words. Eg. 389 to Three hundred and eighty nine. Input 1-999999
2. A 2-D matrix nxn consisting of numbers is spirally sorted in decreasing order. So given a number we have to insert into the matrix so that the matrix is still sorted spirally. Write a function.
Tips: Also practice ad hoc questions

Round: Technical Interview
Experience: In my implementation he thought there was some scope for improvement. I implemented the date of issue and date of return both in the books entity. I then suggested to implement an borrowed_books entity and he seemed very satisfied with it.
Tips: High

Round: Technical Interview
Experience: I asked about the definition of similarity wrt the question. He replied to define it myself. So, I told him that I would find the LCS of the 2 strings and then define a threshold below/above which "we" could say them to be dissimilar/similar. There was a confusion there. I realised my mistake and stated it to be Longest Common Subsequence. He asked me to write the code. After I was done. He told me that the code was incorrect. I went through the code thrice and then I told him whether he could point out the mistakes. There were none. He was trying to see how I reacted. I didn't get too defensive. He was happy with it. Then he asked me to optimize the code. I said that for letters that didn't match in both the strings, we could define some similarity score between individual letters. He said yes it is definitely a good optimization but can you think of something simpler. I then told him that we need to normalize the LCS. He was happy that I could work on the hints he provided.
Tips: Don't get too defensive.
Listen to each and every word that the interviewer utters carefully.
Try to talk through the solution with the interviewer. Don't let a moment of awkward silence come during the interview.
Think of the interviewer as a friend with whom you are discussing a coding question. It eases out 90% of the tension.

College Name: IIT Varanasi

Skills evaluated in this interview

Sde1 Interview Questions asked at other Companies

Q1. DSA and Language Questions: 1. Difference between Arrays and ArrayList in Java. 2. Queue Implementation using Linked List. 3. BST- How would you fill a BST with a sorted array. 4. Random pointer linked-list clone. 5. Fibonacci number genera... read more
View answer (1)

Software Engineer Interview Questions & Answers

user image Srinidhi Prabhu

posted on 21 Aug 2016

I applied via Campus Placement

Interview Preparation Tips

Round: Test
Experience: A bit challenging but interesting.
Tips: 1) Solve as many problems as possible on the website "InterviewBit".
Duration: 75 minutes
Total Questions: 3

General Tips: Don't
Skill Tips: Need to have the ability to code on paper. This needs practice

Skills:
Duration: 2 months
College Name: IIT Madras
Motivation: An exciting company to work at.

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

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

₹16 L/yr - ₹50 L/yr

Senior Software Engineer
1.1k salaries
unlock blur

₹25 L/yr - ₹96 L/yr

Software Engineer2
1k salaries
unlock blur

₹20 L/yr - ₹72 L/yr

Software Developer
762 salaries
unlock blur

₹14 L/yr - ₹50.4 L/yr

Consultant
600 salaries
unlock blur

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