Mastercard LeetCode Questions
12 questions all-time · 5 easy · 6 medium · 1 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Two Sum Array, Hash Table | Easy | 100 | 55.8% |
| 2 | Valid Parentheses String, Stack | Easy | 94 | 42.3% |
| 3 | Valid Anagram Hash Table, String, Sorting | Easy | 87 | 66.7% |
| 4 | Best Time to Buy and Sell Stock Array, Dynamic Programming | Easy | 87 | 55.3% |
| 5 | Subsets Array, Backtracking, Bit Manipulation | Medium | 76 | 80.9% |
| 6 | Fizz Buzz Math, String, Simulation | Easy | 76 | 74.4% |
| 7 | Container With Most Water Array, Two Pointers, Greedy | Medium | 76 | 57.8% |
| 8 | Rotate Image Array, Math, Matrix | Medium | 76 | 77.9% |
| 9 | Longest Palindromic Substring Two Pointers, String, Dynamic Programming | Medium | 76 | 35.8% |
| 10 | Candy Array, Greedy | Hard | 76 | 46.7% |
| 11 | Gas Station Array, Greedy | Medium | 76 | 46.4% |
| 12 | Coin Change Array, Dynamic Programming, Breadth-First Search | Medium | 76 | 46.5% |
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.