Mastercard Coding Interview Questions
We track 11 coding questions asked at Mastercard, tagged with the algorithms and concepts they test. The most common: Array, String, Dynamic Programming, Greedy, Hash Table.
Browse all 11 Mastercard questions →Concept mix
Each question's weight is split evenly across its concepts, so the shares sum to 100%.
- Array26.1%
- String15.5%
- Dynamic Programming15.2%
- Greedy7.6%
- Hash Table7.6%
- Two Pointers6.1%
- Stack4.5%
- Breadth-First Search3.0%
- Math3.0%
- Simulation3.0%
- Other (4)8.4%
How many questions involve each concept
Share of all 11 tracked Mastercard questions that touch each concept. Questions usually involve several, so these overlap.
- Array63.6%
- String45.5%
- Dynamic Programming36.4%
- Greedy18.2%
- Hash Table18.2%
- Two Pointers18.2%
- Backtracking9.1%
- Breadth-First Search9.1%
- Depth-First Search9.1%
- Math9.1%
- Matrix9.1%
- Simulation9.1%
Where Mastercard differs from the average company
Concept weight at Mastercard relative to the average across all companies we track. Green means Mastercard leans on it harder than most.
- Greedy2.5×
- Dynamic Programming2.5×
- Two Pointers1.7×
- String1.6×
Mastercard specialties
Concepts that show up at Mastercard but are rarely asked elsewhere. They are easy to get blindsided by.
Difficulty mix
Level split of the 11 tracked Mastercard questions.
- Junior45% (5)
- Mid/Senior55% (6)
Every concept in Mastercard interviews
| Concept | Questions | % of questions | Share of mix |
|---|---|---|---|
| Array | 7 | 63.6% | 26.1% |
| String | 5 | 45.5% | 15.5% |
| Dynamic Programming | 4 | 36.4% | 15.2% |
| Greedy | 2 | 18.2% | 7.6% |
| Hash Table | 2 | 18.2% | 7.6% |
| Two Pointers | 2 | 18.2% | 6.1% |
| Backtracking | 1 | 9.1% | 1.8% |
| Breadth-First Search | 1 | 9.1% | 3.0% |
| Depth-First Search | 1 | 9.1% | 1.8% |
| Math | 1 | 9.1% | 3.0% |
| Matrix | 1 | 9.1% | 1.8% |
| Simulation | 1 | 9.1% | 3.0% |
| Sorting | 1 | 9.1% | 3.0% |
| Stack | 1 | 9.1% | 4.5% |
Practice a Mastercard interview
Take a realistic AI-led mock interview with questions Mastercard actually asks, with live voice and real feedback.
Start a mock interviewYour first interview is free · no credit card required