All Microsoft Coding Interview Questions
1176 questions we track for Microsoft, most frequently asked first. Practice any of them in the code editor and get AI feedback on your solution.
Start your Microsoft mock interviewQuestions Microsoft asks, live voice, scored. First one free.
- Junior27% (319)
- Mid/Senior56% (658)
- Staff17% (199)
Questionspage 7 of 12
- Greatest Common Divisor of Strings8 companiesJunior
- Flip Columns For Maximum Number of Equal Rows4 companiesMid/Senior
- Letter Tile Possibilities5 companiesMid/Senior
- Duplicate Zeros4 companiesJunior
- Shortest Path in Binary Matrix16 companiesMid/Senior
- Shortest Common Supersequence5 companiesStaff
- Statistics from a Large Sample1 companyMid/Senior
- Car Pooling13 companiesMid/Senior
- Parsing A Boolean Expression8 companiesStaff
- Defanging an IP Address7 companiesJunior
- Corporate Flight Bookings5 companiesMid/Senior
- Maximum Nesting Depth of Two Valid Parentheses Strings3 companiesMid/Senior
- Shortest Path with Alternating Colors5 companiesMid/Senior
- Maximum of Absolute Value Expression2 companiesMid/Senior
- N-th Tribonacci Number6 companiesJunior
- Longest Common Subsequence20 companiesMid/Senior
- Find Words That Can Be Formed by Characters7 companiesJunior
- Maximum Level Sum of a Binary Tree4 companiesMid/Senior
- As Far from Land as Possible6 companiesMid/Senior
- Last Substring in Lexicographical Order5 companiesStaff
- Invalid Transactions7 companiesMid/Senior
- Day of the Week3 companiesJunior
- Maximum Subarray Sum with One Deletion4 companiesMid/Senior
- Maximum Number of Balloons2 companiesJunior
- Reverse Substrings Between Each Pair of Parentheses9 companiesMid/Senior
- Critical Connections in a Network8 companiesStaff
- Minimum Knight Moves12 companiesMid/Senior
- Minimum Absolute Difference15 companiesJunior
- Smallest String With Swaps8 companiesMid/Senior
- Unique Number of Occurrences5 companiesJunior
- Get Equal Substrings Within Budget3 companiesMid/Senior
- Remove All Adjacent Duplicates in String II18 companiesMid/Senior
- Minimum Cost to Move Chips to The Same Position4 companiesJunior
- Path with Maximum Gold6 companiesMid/Senior
- Queens That Can Attack the King2 companiesMid/Senior
- Meeting Scheduler8 companiesMid/Senior
- Remove Sub-Folders from the Filesystem8 companiesMid/Senior
- Maximum Profit in Job Scheduling25 companiesStaff
- Web Crawler7 companiesMid/Senior
- Maximum Length of a Concatenated String with Unique Characters6 companiesMid/Senior
- Tree Diameter8 companiesMid/Senior
- Minimum Swaps to Make Strings Equal4 companiesMid/Senior
- Count Number of Nice Subarrays9 companiesMid/Senior
- Minimum Remove to Make Valid Parentheses11 companiesMid/Senior
- Check If It Is a Good Array4 companiesStaff
- Cells with Odd Values in a Matrix2 companiesJunior
- Number of Closed Islands5 companiesMid/Senior
- Greatest Sum Divisible by Three7 companiesMid/Senior
- Minimum Time Visiting All Points6 companiesJunior
- Count Servers that Communicate6 companiesMid/Senior
- Search Suggestions System21 companiesMid/Senior
- Find Winner on a Tic Tac Toe Game7 companiesJunior
- Count Square Submatrices with All Ones5 companiesMid/Senior
- Find the Smallest Divisor Given a Threshold13 companiesMid/Senior
- Element Appearing More Than 25% In Sorted Array4 companiesJunior
- Convert Binary Number in a Linked List to Integer10 companiesJunior
- Find Numbers with Even Number of Digits7 companiesJunior
- Maximum Number of Occurrences of a Substring6 companiesMid/Senior
- Find N Unique Integers Sum up to Zero6 companiesJunior
- Jump Game III3 companiesMid/Senior
- Decrypt String from Alphabet to Integer Mapping5 companiesJunior
- Convert Integer to the Sum of Two No-Zero Integers4 companiesJunior
- Minimum Flips to Make a OR b Equal to c2 companiesMid/Senior
- Number of Operations to Make Network Connected10 companiesMid/Senior
- Minimum Distance to Type a Word Using Two Fingers2 companiesStaff
- Maximum 69 Number7 companiesJunior
- Print Words Vertically2 companiesMid/Senior
- Delete Leaves With a Given Value4 companiesMid/Senior
- Minimum Number of Taps to Open to Water a Garden13 companiesStaff
- Rank Transform of an Array6 companiesJunior
- Find the City With the Smallest Number of Neighbors at a Threshold Distance5 companiesMid/Senior
- Minimum Difficulty of a Job Schedule7 companiesStaff
- The K Weakest Rows in a Matrix5 companiesJunior
- Maximum Product of Splitted Binary Tree5 companiesMid/Senior
- Number of Steps to Reduce a Number to Zero6 companiesJunior
- Angle Between Hands of a Clock7 companiesMid/Senior
- Check If N and Its Double Exist5 companiesJunior
- Minimum Number of Steps to Make Two Strings Anagram10 companiesMid/Senior
- Maximum Students Taking Exam3 companiesStaff
- Count Negative Numbers in a Sorted Matrix6 companiesJunior
- Maximum Number of Events That Can Be Attended14 companiesMid/Senior
- Sort Integers by The Number of 1 Bits4 companiesJunior
- Number of Substrings Containing All Three Characters6 companiesMid/Senior
- Number of Days Between Two Dates5 companiesJunior
- Validate Binary Tree Nodes3 companiesMid/Senior
- Largest Multiple of Three2 companiesStaff
- How Many Numbers Are Smaller Than the Current Number6 companiesJunior
- Find the Longest Substring Containing Vowels in Even Counts6 companiesMid/Senior
- Longest ZigZag Path in a Binary Tree2 companiesMid/Senior
- Maximum Sum BST in Binary Tree5 companiesStaff
- Number of Times Binary String Is Prefix-Aligned1 companyMid/Senior
- Time Needed to Inform All Employees5 companiesMid/Senior
- Balance a Binary Search Tree5 companiesMid/Senior
- Find the Distance Value Between Two Arrays6 companiesJunior
- Cinema Seat Allocation5 companiesMid/Senior
- Four Divisors6 companiesMid/Senior
- Longest Happy Prefix5 companiesStaff
- Find Lucky Integer in an Array6 companiesJunior
- Construct K Palindrome Strings6 companiesMid/Senior
- Circle and Rectangle Overlapping2 companiesMid/Senior