About usWhy usInstructorsReviewsCostFAQContactBlogRegister for Webinar

35 Microsoft Technical Interview Questions 2020

Posted on 
July 1, 2020
Team Interview Kickstart

Microsoft’s interview process is known to be quite exacting in nature. As a leading global tech company, Microsoft receives thousands of applications for coveted tech positions every year. With its pick of talent, Microsoft designs its technical interviews to identify candidates who can bring the most value to the company, especially in key knowledge areas such as product development, design, and coding. 

Here's what this article entails: 

  1. Overview
  2. 35 commonly asked Microsoft technical interview questions 2020
  3. Common types of behavioral questions at Microsoft interviews

While Microsoft’s interview process is challenging, it’s certainly not impossible to get through. Like most top tech and FAANG companies, Microsoft focuses on a candidate's understanding of computer fundamentals and problem solving abilities. Successful candidates testify that practice is the best way to develop your skills and knowledge in preparation for the interview.

Technical interviews at Microsoft assess both your technical and behavioral skills. However, coding interviews form the largest part of the process. Interviewers will expect you to explain your approach as you develop solutions to coding problems. It is imperative that you focus on reasoning and logic i.e. how you solve problems as opposed to stating the correct answer.

Technical interviews generally centre around common knowledge areas given that most tech companies operate in the same product fields or markets. However, every company compiles a unique list of interview questions based on specific knowledge areas required for job roles within their organization. 

Although Microsoft’s interviews include a lot of commonly asked questions, trying to ascertain and study the entire list of questions is an exhausting and unreliable method of preparation. Questions are often revised or removed from the usual rotation and replaced with new ones, rendering the list irrelevant from time to time. 

Note that while the interview process at Microsoft is fairly structured, it doesn’t follow a typical format. Interviews at Microsoft are generally oriented to meet the requirements of a specific job role. It is imperative, therefore, to familiarise yourself with as many questions as possible to gain insights into the patterns or types of questions asked. This will enable you to identify the concepts to be addressed in a question, irrespective of the manner in which it is posed. 

The onus of understanding how an interviewer wants a question solved lies on the candidate. If you practice and prepare the right way for an interview at Microsoft, you will be able to recognise underlying patterns and ask appropriate clarifying questions. This will further enable you to articulate your thought process as you develop a solution. Interviewers are averse to rehearsed answers. 

35 commonly asked Microsoft technical interview questions 2020

This list, though not exhaustive and at varying degrees of difficulty, will give you an indication of the type of questions to expect and help you gauge knowledge areas that interviewers focus on.

Technical interview questions at Microsoft are based on important coding knowledge areas such as data structures, algorithms, and design. Coding interviews at Microsoft tend to emphasize knowledge on data structures. Questions are usually centered around Graphs, Trees, Linked Lists, Search, Sort, Strings, Arrays, System Design, Bit Manipulation, Math, Dynamic Programming among others.

  1. Remove duplicates from a string.
  2. Given a rotated array which is sorted, search for an element in it.
  3. Given two linked lists that represent two big numbers (numbers that cannot be stored in an int or long long int), write a function that adds the numbers and stores the results in a third list.
  4. Print the last 10 lines of a big file or a big string.
  5. Clone a linked list with next and arbitrary (or random) pointers.
  6. Connect nodes at the same level.
  7. Least common ancestor of a binary tree or a binary search tree.
  8. Test case questions e.g. test an ATM.
  9. Run length encoding.
  10. Detect cycle in a linked list.
  11. Given a sorted array of size n. Each element in the array is unique and lies from 1 to n+1. Find the missing element. 
  12. Check if a binary tree is balanced.
  13. Validate a given IP address.
  14. Two nodes of a BST are swapped. Correct the BST.
  15. Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Search Tree. Print all the keys of the tree in range k1 to k2. i.e. print all x such that k1
  16. Given a singly linked list, delete the middle of the linked list.
  17. Given a binary tree of size N and an integer K, print all nodes that are at distance k from root (root is considered at distance 0 from itself). Nodes should be printed from left to right. If k is more than the height of the tree, nothing should be printed.
  18. Given an array where every element occurs three times, except one element which occurs only once, find the element that occurs once. Expected time complexity is O(n) and O(1) extra space.
  19. Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] and its permutations (or anagrams) in txt[]. You may assume that n > m. Expected time complexity is O(n)
  20. Given a string S, remove all the duplicates in the given string.
  21. Find the contiguous subarray within an array (containing at least one number) which has the largest product. Return an integer corresponding to the maximum product possible.
  22. Find a substring in a string and replace it with another string.
  23. Design a tiny URL.
  24. Write code to convert a given number into words.
  25. Convert a binary tree to DLL.
  26. Given a fraction, find a recurring sequence of digits if it exists, otherwise print “No recurring sequence”.
  27. Construct the sequence arr[1], arr[2], ... by the following rules. For i=1 we put arr[1]=1. Now let i >= 2. Then arr[i] is the least positive integer such that the following two conditions hold
    (i) arr[i] > arr[i - 1];
    (ii) for all k, j < i we have arr[i] is not equal to n1 * arr[k] - n2 * arr[j].
    Find the first n terms of this sequence.
  28. Given a string ‘str’ of digits, find the length of the longest substring of ‘str’, such that the length of the substring is 2k digits and sum of left k digits is equal to the sum of right k digits.
  29. MS Excel columns have a pattern A, B, C, …, Z, AA, AB, AC, …., AZ, BA, BB, … ZZ, AAA, AAB ….. etc. In other words, column 1 is named “A”, column 2 “B”, column 27 as “AA”. Given a column number, find its corresponding Excel column name.
  30. Implement wildcard pattern matching with support for ‘?’ and ‘*’ for strings A and B.
  1. ’?’ : Matches any single character.
  2. ‘*’ : Matches any sequence of characters (including the empty sequence). The matching should cover the entire input string (not partial).
  1. Given a string A representing an absolute path for a file (Unix-style). Return the string A after simplifying the absolute path. Note: Absolute paths always begin with ’/’ ( root directory ); Paths will not have whitespace characters.
  2. Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses of length 2*n.
  3. You are given a set of coins S. In how many ways can you make sum N assuming you have an infinite number of each coin in the set. Note : Coins in set S will be unique. Expected space complexity of this problem is O(N).
  4. Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
  5. Given a singly linked list, L: L0 → L1 → … → Ln-1 → Ln,reorder it to: L0 → Ln → L1 → Ln-1 → L2 → Ln-2 → …

Technical interviews at Microsoft include a behavioral round in addition to coding rounds. Questions asked in this round will focus on your ability to communicate, team work, project management, conflict resolution etc. At Microsoft a learning and growth mindset is what interviewers look out for in candidates.

Below are some common types of behavioral questions at Microsoft interviews.

This will help you understand the type of questions asked to assess your soft skills and cultural fit at Microsoft.

  1. Would you join Google? Why or why not?
  2. Have you experienced failure on a past project? How did you overcome it?
  3. Describe a successful project.
  4. How would you deal with conflict within your team?
  5. Explain how you would make decisions given incomplete information.
  6. Describe your experience leading a team.
  7. How do you assess customer requirements?
  8. Describe a product you conceptualised and launched.
  9. Have you disagreed with your manager on a past project? How did you handle it?
  10. Describe a group project you worked on and what part you worked on.

Whether you’re a recent graduate or an experienced professional, preparing for a technical interview at Microsoft requires structured effort. To assess how your current skills match up to the company requirements refer Interview Kickstart’s Microsoft Interview Guide to gain an in-depth understanding of the various stages of the interview process and what to expect. 

To learn more about how the technical interview process at Microsoft compares to that of its top competitors e.g. like Google, and other top tech companies, and for tips on how to prepare for technical interviews, refer the following resources:

  1. Google Interview Guide
  2. Netflix Interview Guide
  3. 35+ Technical Interview Questions asked at Top Technology Companies
  4. Why is Structured Learning Important for Technical Interviews
  5. Nailing the Technical Interview

Attend our Free Webinar on How to Nail Your Next Technical Interview

Recent Articles

All Blog Posts