General Motors LeetCode Questions
11 questions all-time · 1 easy · 6 medium · 4 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Number of Connected Components in an Undirected Graph Depth-First Search, Breadth-First Search, Union-Find, Graph Theory | Medium | 100 | 0.7% |
| 2 | Number of Steps to Reduce a Number in Binary Representation to One String, Bit Manipulation, Simulation | Medium | 69 | 0.6% |
| 3 | Implement Trie (Prefix Tree) Hash Table, String, Design, Trie | Medium | 65 | 0.7% |
| 4 | Minimum Path Sum Array, Dynamic Programming, Matrix | Medium | 59 | 0.7% |
| 5 | Dot Product of Two Sparse Vectors Array, Hash Table, Two Pointers, Design | Medium | 59 | 0.9% |
| 6 | Maximum Sum of 3 Non-Overlapping Subarrays Array, Dynamic Programming, Sliding Window, Prefix Sum | Hard | 59 | 0.6% |
| 7 | LRU Cache Hash Table, Linked List, Design, Doubly-Linked List | Medium | 52 | 0.5% |
| 8 | First Missing Positive Array, Hash Table | Hard | 52 | 0.4% |
| 9 | Widest Vertical Area Between Two Points Containing No Points Array, Sorting | Easy | 52 | 0.9% |
| 10 | Serialize and Deserialize Binary Tree String, Tree, Depth-First Search, Breadth-First Search, Design, Binary Tree | Hard | 52 | 0.6% |
| 11 | Guess the Word Array, Math, String, Interactive, Game Theory | Hard | 52 | 0.4% |
How to read this list
The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.
Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.