The Hard Online Assessment
This assessment is for campus, new-grad and intern candidates. Experienced hires usually skip it and start with a live screen, so if that's you, the live-round lessons are a better use of your time. For students, especially on India campus drives, the online test usually comes first. In 2026 it ran on HirePro and as a Code for Change test. You get two problems in sixty minutes, and hidden tests grade them.
The India campus sittings have been hard, far harder than the live rounds. Reported sittings have paired a grid simulation with a bitmask DP, or an interval DP with a counting problem on graphs. Some new-grad tests on HackerRank have been closer to two medium problems, but prepare for the hard version. Three of the four problems below need dynamic programming, so know how you'll fill each table and in what order before the clock starts. On the day, read both prompts before you write anything and start with the one you can finish. For practice, code each problem in whichever of the six languages you'll use on the test and give it thirty minutes, its share of the real hour, so you can see where you stall.
MastercardPremium lesson · Coding round
The 4 Mastercard problems are below.
- A Premium questionCoding · Hard
- A Premium questionCoding · Hard
- A Premium questionCoding · Hard
+ 1 more in this lesson
Each with hints, the follow-up and a tested solution.
Get the Mastercard questions$49 a year · all 100 companies · cancel anytime
From 116 Mastercard reports, forum threads behind logins and write-ups in Chinese.
Mastercard interview guideKnow what Mastercard asks before you walk in.
31 coding · 2 system design · 15 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.