QUESTIONS BY COMPANY

Mastercard LeetCode Questions 2026

Browse LeetCode problems frequently asked by Mastercard. Filter by difficulty and timeframe to focus your interview prep.

Last updated: 20 Feb 2026

ProblemDifficultyFrequencyTopics
Valid ParenthesesEASY
100%
StringStack
Two SumEASY
100%
ArrayHash Table
Valid AnagramEASY
75%
Hash TableStringSorting
Container With Most WaterMEDIUM
75%
ArrayTwo PointersGreedy
Longest Palindromic SubstringMEDIUM
75%
Two PointersStringDynamic Programming
Best Time to Buy and Sell StockEASY
87.5%
ArrayDynamic Programming
Gas StationMEDIUM
75%
ArrayGreedy
Coin ChangeMEDIUM
87.5%
ArrayDynamic ProgrammingBreadth-First Search
Word SearchMEDIUM
75%
ArrayStringBacktrackingDepth-First SearchMatrix
Fizz BuzzEASY
87.5%
MathStringSimulation

Need Help Solving These Problems?

CodingInterviewAI can instantly identify algorithms and generate optimal solutions for any LeetCode problem. Get step-by-step explanations and ace your next technical interview.

CodingInterviewAI logo

© 2026 CodingInterviewAI. All rights reserved

CodingInterviewAI

HomeBlogGive Feedback