Top Questions from Microsoft

Total 58 questions.

Introduction

Top interview questions asked by Microsoft as voted by the LeetCode community.

LeetCode compiled this list thoroughly so you can save time and get well-prepared for a Microsoft interview.

Completing this card should give you a good idea of the type of questions you would encounter in your Microsoft interview.

Arrays and Strings

  • Two Sum (Editor’s choice: Frequently asked in a Microsoft onsite interview.)  
  • Valid Palindrome (Editor’s choice: Frequently asked in a Microsoft onsite interview.)  
  • String to Integer (atoi) (Editor’s choice: Frequently asked in a Microsoft onsite interview.)
  • Reverse String
  • Reverse Words in a String (Editor’s choice: Frequently asked in a Microsoft onsite interview.)
  • Reverse Words in a String II (Editor’s choice: Frequently asked in a Microsoft onsite interview.)  
  • Valid Parentheses
  • Longest Palindromic Substring
  • Group Anagrams
  • Trapping Rain Water
  • Set Matrix Zeroes
  • Rotate Image
  • Spiral Matrix

Design

These are some design questions for you to practice for your Microsoft interview. You should practice both Serialize and Deserialize Binary Tree/BST. Make sure for the BST variant that you use the special properties of BST for the serialization and deserialization.

Also make sure you know how to implement a prefix tree (Trie), which is frequently asked by Microsoft.

Leave a Reply

Your email address will not be published. Required fields are marked *