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: 10 July 2026

Try CodingInterviewAI free on a practice problem

New accounts get 10 free credits for the free AI model—up to five complete problems.

Download the app
ProblemDifficultyFrequencyTopics
Valid ParenthesesEASY
87.5%
StringStack
Two SumEASY
100%
ArrayHash Table
Valid AnagramEASY
75%
Hash TableStringSorting
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
Coin Change IIMEDIUM
75%
ArrayDynamic Programming
N-QueensHARD
87.5%
ArrayBacktracking
Rotate ImageMEDIUM
75%
ArrayMathMatrix

Practice with AI help

Find algorithm patterns and generate explained solutions.

Download the app