- Interview Questions
- /
- 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.
Top Topics at Mastercard
Ace your Mastercard interview with AI
Get real-time AI assistance during your actual interview. Invisible to screensharing.
Mastercard Interview Problems
| Problem | DifficultyDiff | Action |
|---|---|---|
Buildings With an Ocean View 100% | MediumM | Solve→ |
Climbing Stairs 99% | EasyE | Solve→ |
Diameter of Binary Tree 97% | EasyE | Solve→ |
Kth Smallest Element in a Sorted Matrix 95% | MediumM | Solve→ |
Lowest Common Ancestor of a Binary Tree 89% | MediumM | Solve→ |
Meeting Rooms II 89% | MediumM | Solve→ |
Evaluate Division 88% | MediumM | Solve→ |
Adding Spaces to a String 86% | MediumM | Solve→ |
Binary Tree Vertical Order Traversal 85% | MediumM | Solve→ |
The kth Factor of n 83% | MediumM | Solve→ |
Group Shifted Strings 81% | MediumM | Solve→ |
Missing Number 81% | EasyE | Solve→ |
Subsets II 78% | MediumM | Solve→ |
Maximum Swap 77% | MediumM | Solve→ |
Maximum Number of Events That Can Be Attended 75% | MediumM | Solve→ |
Rank Transform of a Matrix 73% | HardH | Solve→ |
Find Peak Element 72% | MediumM | Solve→ |
Linked List Cycle 72% | EasyE | Solve→ |
Convert Binary Search Tree to Sorted Doubly Linked List 65% | MediumM | Solve→ |
Find K Pairs with Smallest Sums 65% | MediumM | Solve→ |
Jump Game 64% | MediumM | Solve→ |
Goat Latin 64% | EasyE | Solve→ |
Longest Subarray of 1's After Deleting One Element 61% | MediumM | Solve→ |
Number of Islands 60% | MediumM | Solve→ |
Line Reflection 58% | MediumM | Solve→ |
Pass your interview with AI assistance
Get real-time solutions during your actual coding interview. Invisible to screensharing.
Check If N and Its Double Exist 58% | EasyE | Solve→ |
Majority Element 57% | EasyE | Solve→ |
Longest Palindromic Substring 57% | MediumM | Solve→ |
Ransom Note 51% | EasyE | Solve→ |
Random Pick with Weight 49% | MediumM | Solve→ |
Koko Eating Bananas 45% | MediumM | Solve→ |
Find Leaves of Binary Tree 43% | MediumM | Solve→ |
Minimum Absolute Difference 43% | EasyE | Solve→ |
Vertical Order Traversal of a Binary Tree 42% | HardH | Solve→ |
Coin Change 41% | MediumM | Solve→ |
Basic Calculator 39% | HardH | Solve→ |
Bus Routes 31% | HardH | Solve→ |
Number of Ships in a Rectangle 27% | HardH | Solve→ |
Merge Sorted Array 23% | EasyE | Solve→ |
Logger Rate Limiter 23% | EasyE | Solve→ |
Similar Companies
Explore interview questions from other companies with similar interview patterns.
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 FreeNo credit card required