IO
Companies/Microsoft
165 problems tagged

Microsoft

Problems frequently asked in Microsoft technical interviews, sorted by frequency.

159Total problems
0Solved
61Very High freq.
0%Completion
Implement Pow(x, n)· Recursion
Amazon
Microsoft
Google
+1
Recursion · Maths · Bit Manipulation
Generate Brackets· Recursion
Amazon
Google
Microsoft
+1
Recursion · Backtracking · Strings
Power Set· Recursion
Amazon
Microsoft
Meta
Recursion · Backtracking · Bit Manipulation
Two Sum· Hashing
Amazon
Google
Microsoft
+2
Arrays · Hashing
Longest Consecutive Sequence· Hashing
Amazon
Google
Microsoft
+1
Arrays · Hashing
Finding the Single Element in an Array· Arrays
Amazon
Microsoft
Google
Arrays · Bit Manipulation
Largest Subarray Sum· Arrays
Amazon
Microsoft
Google
+1
Arrays · Dynamic Programming · Divide and Conquer
Arrange Colors in Order· Arrays
Amazon
Microsoft
Google
+1
Arrays · Two Pointers · Sorting
Majority Element· Arrays
Amazon
Microsoft
Google
+1
Arrays · Hashing · Greedy
Maximize Share Profit· Arrays
Amazon
Microsoft
Google
+1
Arrays · Greedy · Dynamic Programming
Merge Two Sorted Array· Arrays
Amazon
Microsoft
Meta
Arrays · Two Pointers · Sorting
Spiral Matrix· Arrays
Amazon
Microsoft
Google
+1
Arrays · Matrix · Simulation
Three Sum· Arrays
Amazon
Google
Microsoft
+2
Arrays · Two Pointers · Sorting
Merge Intervals· Arrays
Amazon
Google
Microsoft
+2
Arrays · Sorting · Greedy
First and Last Occurrence· Binary Search
Amazon
Microsoft
Google
+1
Binary Search · Arrays
Search Element in Rotated Sorted Array· Binary Search
Amazon
Microsoft
Google
+1
Binary Search · Arrays
Find Minimum in Rotated Sorted Array· Binary Search
Amazon
Microsoft
Google
+1
Binary Search · Arrays
Median of Two Sorted Arrays· Binary Search
Amazon
Google
Microsoft
+1
Binary Search · Arrays
Single Element· Bit Manipulation
Amazon
Microsoft
Google
Bit Manipulation · Arrays
Insert Interval· Greedy Algorithms
Amazon
Google
Microsoft
+1
Arrays · Greedy · Sorting
Amazon
Google
Microsoft
+1
Arrays · Greedy · Dynamic Programming
Amazon
Google
Microsoft
+2
Linked List · Hashing · Greedy
Longest Substring Without Repeating Characters· Sliding Window & Two Pointers
Amazon
Google
Microsoft
+2
Strings · Sliding Window · Hashing
Minimum Window Substring· Sliding Window & Two Pointers
Amazon
Google
Microsoft
+1
Strings · Sliding Window · Hashing
Balanced Parenthesis· Stacks & Queues
Amazon
Google
Microsoft
+2
Stack · Strings
Implement Min Stack· Stacks & Queues
Amazon
Google
Microsoft
+2
Stack · Design
Next Greater Element· Stacks & Queues
Amazon
Microsoft
Google
Stack · Monotonic Stack · Arrays
Trapping Rainwater· Stacks & Queues
Amazon
Google
Microsoft
+2
Arrays · Stack · Two Pointers
Largest Rectangle in Histogram· Stacks & Queues
Amazon
Google
Microsoft
+1
Arrays · Stack · Monotonic Stack
Middle of the Linked List· Linked List
Amazon
Microsoft
Google
Linked List · Two Pointers
Reverse a Linked List· Linked List
Amazon
Google
Microsoft
+2
Linked List · Recursion
Cycle Detection· Linked List
Amazon
Google
Microsoft
+1
Linked List · Two Pointers
Delete Kth Node From End· Linked List
Amazon
Google
Microsoft
+1
Linked List · Two Pointers
Intersection of Two Linked Lists· Linked List
Amazon
Microsoft
Google
+1
Linked List · Two Pointers · Hashing
Add Two Numbers· Linked List
Amazon
Google
Microsoft
+2
Linked List · Maths · Recursion
Reverse Nodes in K-Group· Linked List
Amazon
Google
Microsoft
+1
Linked List · Recursion
Level Order Traversal· Binary Trees
Amazon
Microsoft
Google
+1
Trees · BFS · Queue
Diameter of Binary Tree· Binary Trees
Amazon
Microsoft
Google
Trees · Recursion · DFS
Right View of Binary Tree· Binary Trees
Amazon
Microsoft
Google
Trees · DFS · BFS
Lowest Common Ancestor of a Binary Tree· Binary Trees
Amazon
Microsoft
Google
+1
Trees · DFS · Recursion
Kth Smallest Element in BST· Binary Search Tree
Amazon
Microsoft
Google
Binary Search Tree · Recursion · Stack
Validate a Binary Search Tree· Binary Search Tree
Amazon
Microsoft
Google
+1
Binary Search Tree · Recursion · DFS
Kth Largest Element· Heaps
Amazon
Microsoft
Google
+1
Heap · Sorting · Arrays
Merge K Sorted Linked Lists· Heaps
Amazon
Microsoft
Google
+1
Heap · Linked List · Sorting
Top K Frequent Elements· Heaps
Amazon
Microsoft
Google
+1
Heap · Hashing · Sorting
Number Of Islands· Graphs
Amazon
Microsoft
Google
+1
Graph · BFS · DFS
Word Transformation Sequence· Graphs
Amazon
Microsoft
Google
+1
Graph · BFS · Hashing
Dijkstra's Algorithm· Graphs
Amazon
Microsoft
Google
Graph · Heap · BFS
Climbing Stairs· Dynamic Programming
Amazon
Microsoft
Adobe
Dynamic Programming · Recursion
Amazon
Microsoft
Google
Dynamic Programming · Arrays
Amazon
Microsoft
Google
Dynamic Programming · Arrays
Minimum Path Sum· Dynamic Programming
Amazon
Microsoft
Google
Dynamic Programming · Arrays
Partition Equal Subset Sum· Dynamic Programming
Amazon
Microsoft
Google
Dynamic Programming · Arrays
Longest Common Subsequence· Dynamic Programming
Amazon
Microsoft
Google
+1
Dynamic Programming · Strings
Amazon
Microsoft
Google
+1
Dynamic Programming · Strings
Building a Growing Sequence of Heights· Dynamic Programming
Amazon
Microsoft
Google
Dynamic Programming · Arrays · Binary Search
Combination Sum II· Recursion
Amazon
Microsoft
Meta
Recursion · Backtracking · Arrays
Password Decoder· Recursion
Amazon
Microsoft
Recursion · Backtracking · Dynamic Programming
All Palindromic Splits of a String· Recursion
Amazon
Microsoft
Google
Recursion · Backtracking · Strings
Word Search in Matrix· Recursion
Amazon
Microsoft
Meta
+1
Recursion · Backtracking · Arrays
Largest Subarray With Zero Sum· Hashing
Amazon
Microsoft
Arrays · Hashing · Prefix Sum
Merge Sort Implementation· Sorting
Amazon
Microsoft
Google
Sorting · Arrays · Recursion
Quick Sort Implementation· Sorting
Amazon
Microsoft
Google
Sorting · Arrays · Recursion
Remove Duplicates from Sorted Array· Arrays
Amazon
Microsoft
Meta
Arrays · Two Pointers
Left Rotate an Array by K Places· Arrays
Amazon
Microsoft
Arrays · Two Pointers
Move Zeros to the End of an Array· Arrays
Amazon
Meta
Microsoft
Arrays · Two Pointers
Finding the Missing Number in an Array· Arrays
Amazon
Microsoft
Adobe
Arrays · Hashing · Bit Manipulation
Maximum Subarray Product· Arrays
Amazon
Microsoft
Meta
Arrays · Dynamic Programming
Find the Next Permutation· Arrays
Amazon
Microsoft
Google
Arrays · Two Pointers · Backtracking
Zero Fill Matrix· Arrays
Amazon
Microsoft
Meta
Arrays · Matrix
Grid Rotation· Arrays
Amazon
Microsoft
Apple
Arrays · Matrix
Pascal's Triangle· Arrays
Amazon
Microsoft
Google
+1
Arrays · Maths · Dynamic Programming
Missing and Repeating Elements· Arrays
Amazon
Microsoft
Adobe
Arrays · Hashing · Maths
Lower Bound· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Upper Bound· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Search Insert Position· Binary Search
Amazon
Microsoft
Meta
Binary Search · Arrays
Search Element in Rotated Sorted Array II· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Find Single Element· Binary Search
Amazon
Microsoft
Binary Search · Arrays · Bit Manipulation
Minimum Capacity to Transport Parcels· Binary Search
Amazon
Google
Microsoft
Binary Search · Arrays · Greedy
Book Allocation· Binary Search
Amazon
Google
Microsoft
Binary Search · Arrays · Greedy
Painters Partition· Binary Search
Amazon
Microsoft
Binary Search · Arrays · Greedy
Search in a 2D Sorted Matrix· Binary Search
Amazon
Microsoft
Meta
Binary Search · Arrays · Matrix
Search in a 2D Sorted Matrix II· Binary Search
Amazon
Microsoft
Google
Binary Search · Arrays · Matrix
Count Set Bits in an Integer· Bit Manipulation
Amazon
Microsoft
Google
Bit Manipulation
Divide Two Integers· Bit Manipulation
Amazon
Google
Microsoft
Bit Manipulation · Maths
Fractional Knapsack· Greedy Algorithms
Amazon
Microsoft
Greedy · Arrays · Sorting
Amazon
Google
Microsoft
+1
Arrays · Greedy · Dynamic Programming
Next Greater Element II· Stacks & Queues
Amazon
Microsoft
Stack · Monotonic Stack · Arrays
Nearest Smaller Element· Stacks & Queues
Amazon
Microsoft
Stack · Monotonic Stack · Arrays
Remove K Digits· Stacks & Queues
Amazon
Google
Microsoft
Stack · Monotonic Stack · Greedy
Find Start Node of a Cycle· Linked List
Amazon
Microsoft
Meta
Linked List · Two Pointers
Palindrome Linked List· Linked List
Amazon
Microsoft
Meta
Linked List · Two Pointers · Recursion
Sort Linked List· Linked List
Amazon
Microsoft
Google
Linked List · Sorting · Merge Sort
Clone Smart Device Chain with Random Pointer· Linked List
Amazon
Google
Microsoft
+1
Linked List · Hashing · Recursion
Preorder Traversal· Binary Trees
Amazon
Microsoft
Trees · DFS · Recursion
Inorder Traversal· Binary Trees
Amazon
Microsoft
Trees · DFS · Recursion
Height of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Balanced Binary Tree· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Maximum Path Sum of a Binary Tree· Binary Trees
Amazon
Microsoft
Google
Trees · Recursion · DFS
Symmetric Binary Tree· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Zig-Zag Level Order Traversal· Binary Trees
Amazon
Microsoft
Trees · BFS · Queue
Top View of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · BFS · Hashing
Bottom View of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · BFS · Hashing
Left View of Binary Tree· Binary Trees
Amazon
Microsoft
Trees · DFS · BFS
Preorder Inorder Tree Build· Binary Trees
Amazon
Microsoft
Google
Trees · Recursion · DFS
Tree Serialization and Deserialization· Binary Trees
Amazon
Microsoft
Google
+1
Trees · DFS · BFS
Amazon
Microsoft
Binary Search Tree · Recursion · Binary Search
Insertion in BST· Binary Search Tree
Amazon
Microsoft
Binary Search Tree · Recursion
Deletion in BST· Binary Search Tree
Amazon
Microsoft
Google
Binary Search Tree · Recursion
Lowest Common Ancestor in BST· Binary Search Tree
Amazon
Microsoft
Binary Search Tree · Recursion
Merge K Sorted Arrays· Heaps
Amazon
Microsoft
Google
Heap · Arrays · Sorting
Median Tracker In Data Stream· Heaps
Amazon
Microsoft
Google
+1
Heap · Sorting
BFS Traversal· Graphs
Amazon
Microsoft
Graph · BFS · Queue
DFS Traversal· Graphs
Amazon
Microsoft
Graph · DFS · Recursion
Number of Provinces· Graphs
Amazon
Microsoft
Graph · DFS · Union Find
Rotten Oranges· Graphs
Amazon
Microsoft
Graph · BFS · Queue
'O' Within 'X' Boundary· Graphs
Amazon
Microsoft
Graph · DFS · BFS
Detect Cycle In A Directed Graph· Graphs
Amazon
Microsoft
Graph · DFS · Topological Sort
Topological Sort· Graphs
Amazon
Microsoft
Google
Graph · DFS · Topological Sort
Kahn's Algorithm· Graphs
Amazon
Microsoft
Google
Graph · BFS · Topological Sort
Floyd Warshall· Graphs
Amazon
Microsoft
Google
Graph · Dynamic Programming
Disjoint Sets Implementation· Graphs
Amazon
Microsoft
Google
Union Find · Graph
House Robber II· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Arrays
Unique Paths II· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Arrays
Amazon
Microsoft
Dynamic Programming · Arrays
Amazon
Microsoft
Dynamic Programming · Arrays · Recursion
Possible Coin Combinations· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Arrays
Unbounded Knapsack· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Arrays
Longest Common Substring· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Strings
Longest Palindromic Subsequence· Dynamic Programming
Amazon
Microsoft
Google
Dynamic Programming · Strings
Stock Trading II· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Greedy · Arrays
Implementation of Tries I· Tries
Amazon
Google
Microsoft
Trie · Strings
Maximum XOR of Two Numbers· Tries
Amazon
Google
Microsoft
Trie · Bit Manipulation
KMP Pattern Matching Algorithm· Strings — Advanced Algorithms
Amazon
Google
Microsoft
Strings · KMP
Number of Palindromic Substrings· Strings — Advanced Algorithms
Amazon
Microsoft
Google
Strings · Dynamic Programming · Two Pointers
Second Largest Element· Arrays
Amazon
Microsoft
Arrays
K-th element of Two Arrays· Binary Search
Amazon
Microsoft
Binary Search · Arrays
Check if a Number is a Power of 2· Bit Manipulation
Amazon
Microsoft
Bit Manipulation · Maths
Single Number III· Bit Manipulation
Amazon
Microsoft
Bit Manipulation · Arrays
Shortest Job First· Greedy Algorithms
Amazon
Microsoft
Greedy · Heap · Sorting
Implement Stack Using Queue· Stacks & Queues
Amazon
Microsoft
Stack · Queue
Implement Queue Using Stack· Stacks & Queues
Amazon
Microsoft
Stack · Queue
Amazon
Microsoft
Stack · Monotonic Stack · Design
Reverse a Doubly Linked List· Linked List
Amazon
Microsoft
Linked List
Even and Odd Linked List· Linked List
Amazon
Microsoft
Linked List
Add 1 to Linked List· Linked List
Amazon
Microsoft
Linked List · Recursion · Maths
Rotate the Linked List· Linked List
Amazon
Microsoft
Linked List
Flatten a Linked List· Linked List
Amazon
Microsoft
Linked List · Recursion · Sorting
Maximum Width of a Binary Tree· Binary Trees
Amazon
Microsoft
Trees · BFS · Queue
Vertical Order Traversal of Binary Tree· Binary Trees
Amazon
Microsoft
Google
Trees · BFS · Hashing
Unique Tree from Traversals· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Inorder Postorder Tree Build· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Flattening a Binary Tree into a Right-Skewed List· Binary Trees
Amazon
Microsoft
Trees · Recursion · DFS
Implement Min Heap· Heaps
Amazon
Microsoft
Heap · Arrays
Flood Fill· Graphs
Amazon
Microsoft
Graph · BFS · DFS
Prim's Algorithm Implementation· Graphs
Amazon
Microsoft
Graph · Heap · Greedy
Kruskal's Algorithm Implementation· Graphs
Amazon
Microsoft
Graph · Union Find · Greedy
Minimum Deletions to Make Strings Equal· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Strings
Stock Trading III· Dynamic Programming
Amazon
Microsoft
Dynamic Programming · Arrays