Mastercard coding interview questions
Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.
| Progress | Title | Difficulty | Next step |
|---|---|---|---|
| Decode StringStack Basics | Medium | Solve | |
| Design Linked ListLinked Lists | Medium | Solve | |
| Longest Increasing Subsequence1D DP | Medium | Solve | |
| Top K Frequent WordsTop K / Kth Largest / Smallest | Medium | Solve | |
| Integer to English WordsSimulation | Hard | Solve | |
| Linked List CycleSlow Fast Pointers | Easy | Solve | |
| Combination Sum (repeating elements)Pick / Not-Pick | Medium | Solve | |
| Diameter of Binary TreePostorder + Multiple Return Values | Easy | Solve | |
| Rotate StringString Basics | Easy | Solve | |
| Two SumTwo Sum | Easy | Solve | |
| Valid ParenthesesStack Basics | Easy | Solve | |
| Best Time to Buy and Sell StockState Machine DP - Stock Problems | Easy | Solve | |
| Coin Change IIKnapsack | Medium | Solve | |
| Strange PrinterInterval DP | Hard | Solve | |
| N-Queens2D Matrix | Hard | Solve | |
| Coin ChangeKnapsack | Medium | Solve | |
| Fizz BuzzSimulation | Easy | Solve | |
| Gas StationKadane's Algorithm | Medium | Solve | |
| Word Search2D Matrix Backtracking | Medium | Solve | |
| Rotate ImageIn-place Transformations | Medium | Solve | |
| Kadane's Algorithm - SimpleKadane's Algorithm | Medium | Solve | |
| Contain VirusMatrix Graphs | Hard | Solve | |
| Jump GameGreedy | Medium | Solve | |
| Valid AnagramHashing | Easy | Solve | |
| Longest Palindromic SubstringStrings | Medium | Solve | |
| Implement Queue using StacksStack Basics | Easy | Solve | |
| Rotting OrangesMulti source BFS | Medium | Solve | |
| Validate IP AddressSimulation | Medium | Solve | |
| Valid PalindromeTwo Pointer | Easy | Solve | |
| Plus OneRight to Left Traversal | Easy | Solve | |
| String to Integer (atoi)Simulation | Medium | Solve | |
| Reverse Linked ListFront Middle Back Pointer | Easy | Solve | |
| Missing NumberMissing / Repeated Numbers | Easy | Solve | |
| Lowest Common Ancestor of a Binary TreeLCA | Medium | Solve | |
| 0 - 1 Knapsack ProblemKnapsack | Medium | Solve | |
| Count PrimesMath / Number Theory | Medium | Solve | |
| Middle of the Linked ListSlow Fast Pointers | Easy | Solve |
No questions match these filters.
Questions people ask
What coding questions does Mastercard ask most?
Decode String, Design Linked List, Longest Increasing Subsequence, Top K Frequent Words, Integer to English Words, Linked List Cycle, Combination Sum (repeating elements), Diameter of Binary Tree.
Which topics come up in Mastercard coding rounds?
arrays, strings, dynamic programming, backtracking, graphs, stack.
How hard are Mastercard coding questions?
Of the reported questions, 14 are easy, 19 medium and 4 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.