Skip to content

Mastercard interview questions

The most frequent LeetCode problems tagged to Mastercard. This is a data-only page. For process and behavioral prep, use the coding guide and behavioral guide.

Based on 4 distinct problems tagged to Mastercard in the last 6 months (2 in the last 30 days, 2 in the last 3 months, 13 all-time) across two open datasets of LeetCode company tags. Tags are user-reported, so treat frequency as a signal, not a promise.

Difficulty mix (last 6 months): Easy 50%, Hard 25%, Medium 25%

Most tagged topics (share of problems): Dynamic Programming 75%, String 50%, Array 50%, Knapsack Problem 25%, Complete Knapsack 25%, Math 25%, Simulation 25%

Watch out: Mastercard has thin LeetCode data. Weight the reported questions and the format notes above more than this list.

Most frequent problems

Ranked by frequency, weighted toward the last 30 days. Classics like Two Sum sit near the top of almost every company's list because users tag them everywhere. Solve those fast. The signature list below is more specific to this company.

# Problem Difficulty Last seen Topics
1 Strange Printer Hard 30 days String, Dynamic Programming
2 Coin Change II Medium 30 days Array, Dynamic Programming, Knapsack Problem, Complete Knapsack
3 Best Time to Buy and Sell Stock Easy 6 months Array, Dynamic Programming
4 Fizz Buzz Easy 6 months Math, String, Simulation

Signature problems

Problems where Mastercard accounts for a large share of all recent tags across companies. These are the most Mastercard-specific questions in the data.

# Problem Difficulty Last seen Topics
1 Strange Printer Hard 30 days String, Dynamic Programming
2 Coin Change II Medium 30 days Array, Dynamic Programming, Knapsack Problem, Complete Knapsack

Sources

Next: More companies