Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
  1. Interview Questions
  2. /
  3. Mastercard

Mastercard LeetCode Interview Questions

Practice 40 real coding problems frequently asked in Mastercard technical interviews. Master these questions to ace your next Mastercard software engineering interview.

11 Easy
24 Medium
5 Hard

Top Topics at Mastercard

ArraySortingHash TableDepth-First SearchMath

Ace your Mastercard interview with AI

Get real-time AI assistance during your actual interview. Invisible to screensharing.

Start Free Trial

Mastercard Interview Problems

ProblemDifficultyDiffFrequencyTopicsAction
Buildings With an Ocean View
100%
MediumM
100%
ArrayStack+1
Solve→
Climbing Stairs
99%
EasyE
99%
MathDynamic Programming+1
Solve→
Diameter of Binary Tree
97%
EasyE
97%
TreeDepth-First Search+1
Solve→
Kth Smallest Element in a Sorted Matrix
95%
MediumM
95%
ArrayBinary Search+3
Solve→
Lowest Common Ancestor of a Binary Tree
89%
MediumM
89%
TreeDepth-First Search+1
Solve→
Meeting Rooms II
89%
MediumM
89%
ArrayTwo Pointers+4
Solve→
Evaluate Division
88%
MediumM
88%
ArrayString+5
Solve→
Adding Spaces to a String
86%
MediumM
86%
ArrayTwo Pointers+2
Solve→
Binary Tree Vertical Order Traversal
85%
MediumM
85%
Hash TableTree+4
Solve→
The kth Factor of n
83%
MediumM
83%
MathNumber Theory
Solve→
Group Shifted Strings
81%
MediumM
81%
ArrayHash Table+1
Solve→
Missing Number
81%
EasyE
81%
ArrayHash Table+4
Solve→
Subsets II
78%
MediumM
78%
ArrayBacktracking+1
Solve→
Maximum Swap
77%
MediumM
77%
MathGreedy
Solve→
Maximum Number of Events That Can Be Attended
75%
MediumM
75%
ArrayGreedy+2
Solve→
Rank Transform of a Matrix
73%
HardH
73%
ArrayUnion Find+4
Solve→
Find Peak Element
72%
MediumM
72%
ArrayBinary Search
Solve→
Linked List Cycle
72%
EasyE
72%
Hash TableLinked List+1
Solve→
Convert Binary Search Tree to Sorted Doubly Linked List
65%
MediumM
65%
Linked ListStack+5
Solve→
Find K Pairs with Smallest Sums
65%
MediumM
65%
ArrayHeap (Priority Queue)
Solve→
Jump Game
64%
MediumM
64%
ArrayDynamic Programming+1
Solve→
Goat Latin
64%
EasyE
64%
String
Solve→
Longest Subarray of 1's After Deleting One Element
61%
MediumM
61%
ArrayDynamic Programming+1
Solve→
Number of Islands
60%
MediumM
60%
ArrayDepth-First Search+3
Solve→
Line Reflection
58%
MediumM
58%
ArrayHash Table+1
Solve→

Pass your interview with AI assistance

Get real-time solutions during your actual coding interview. Invisible to screensharing.

Start Free Trial
Check If N and Its Double Exist
58%
EasyE
58%
ArrayHash Table+3
Solve→
Majority Element
57%
EasyE
57%
ArrayHash Table+3
Solve→
Longest Palindromic Substring
57%
MediumM
57%
Two PointersString+1
Solve→
Ransom Note
51%
EasyE
51%
Hash TableString+1
Solve→
Random Pick with Weight
49%
MediumM
49%
ArrayMath+3
Solve→
Koko Eating Bananas
45%
MediumM
45%
ArrayBinary Search
Solve→
Find Leaves of Binary Tree
43%
MediumM
43%
TreeDepth-First Search+1
Solve→
Minimum Absolute Difference
43%
EasyE
43%
ArraySorting
Solve→
Vertical Order Traversal of a Binary Tree
42%
HardH
42%
Hash TableTree+4
Solve→
Coin Change
41%
MediumM
41%
ArrayDynamic Programming+1
Solve→
Basic Calculator
39%
HardH
39%
MathString+2
Solve→
Bus Routes
31%
HardH
31%
ArrayHash Table+1
Solve→
Number of Ships in a Rectangle
27%
HardH
27%
ArrayDivide and Conquer+1
Solve→
Merge Sorted Array
23%
EasyE
23%
ArrayTwo Pointers+1
Solve→
Logger Rate Limiter
23%
EasyE
23%
Hash TableDesign+1
Solve→

Similar Companies

Explore interview questions from other companies with similar interview patterns.

Bloomberg
40 problems
Airtasker
40 problems
Arcutis Biotherapeutics
40 problems
ASML
40 problems
Avanade
40 problems
Avaya
40 problems

Frequently Asked Questions

What LeetCode problems does Mastercard ask in interviews?

Mastercard commonly asks 40 coding problems in technical interviews, including Buildings With an Ocean View, Climbing Stairs, Diameter of Binary Tree. The difficulty breakdown is 11 Easy, 24 Medium, and 5 Hard problems.

How should I prepare for a Mastercard coding interview?

Focus on the most frequently asked problems first, especially those with high frequency scores. Mastercard interviews typically emphasize Array and Sorting. Practice explaining your thought process while coding.

What is the difficulty level of Mastercard coding interviews?

Based on our data, Mastercard interviews include 11 Easy (28%), 24 Medium (60%), and 5 Hard (13%) problems.

Ready to ace your Mastercard interview?

Join thousands of engineers who landed offers at top tech companies.

Get Started Free

No credit card required

All CompaniesEasy ProblemsMedium ProblemsHard ProblemsBrowse by Topic
Interview Solver
  • Home
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.