grindmapcompany-wise LeetCode
All companies

Mastercard LeetCode Interview Questions

12 questions all-time · 5 easy · 6 medium · 1 hard

Mastercard has asked 12 distinct LeetCode questions across all recorded interviews: 5 easy, 6 medium and 1 hard. The questions reported most often are Two Sum, Valid Parentheses and Valid Anagram. 1 of them was reported in interviews from the Last 3 Months window. Every question links straight to LeetCode, and the list can be filtered by difficulty and topic or sorted by how often the question comes up.

# Problem Difficulty Frequency Acceptance
1Two Sum
Easy
100
55.8%
2Valid Parentheses
Easy
94
42.3%
3Valid Anagram
Easy
87
66.7%
4Best Time to Buy and Sell Stock
Easy
87
55.3%
5Subsets
Medium
76
80.9%
6Fizz Buzz
Easy
76
74.4%
7Container With Most Water
Medium
76
57.8%
8Rotate Image
Medium
76
77.9%
9Longest Palindromic Substring
Medium
76
35.8%
10Candy
Hard
76
46.7%
11Gas Station
Medium
76
46.4%
12Coin Change
Medium
76
46.5%

Where this data comes from

These questions come from the public leetcode-company-wise-problems data set, which collects interview reports from candidates. They are community-reported rather than published by Mastercard, so treat the list as a strong signal of what gets asked, not an official or exhaustive syllabus. Last refreshed .

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. It is a relative popularity signal within Mastercard's questions, not a probability that you will be asked it. Acceptance is LeetCode's own share of submissions that pass for that problem, across all users, not something specific to Mastercard. Click any question to open it on LeetCode.

Similar companies