InterviewLegend

More Campus OA Problems

Alex Chen45 min readUpdated 116 real interview reports

Only campus and intern candidates need these, since experienced hires usually skip Mastercard's online assessment. The older campus and intern tests worked a little differently from the hard HirePro sittings. Statements came with full samples, and input could arrive on standard input, line by line. One prompt warned that a stray print would fail the test case. Work these three after the hard assessment problems, as extra practice.

They look friendlier than they are. One hides a matching, and in another a flat fee breaks the greedy answer. The third is the gentle one, so spend its spare minutes testing your input loop. Here the problems take function arguments, and every language tab shares one set of tests. On the real test you'd parse the same values from standard input, so write that loop once for practice and make sure nothing else prints.

MastercardPremium lesson · Coding round

The 3 Mastercard problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Hard
  3. A Premium questionCoding · Medium

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.

Had your Mastercard interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Mastercard interview guide

Know what Mastercard asks before you walk in.

31 coding · 2 system design · 15 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.