Preparation Guide
Week-by-week plan for Mastercard.
Practice Mastercard coding questions in the style candidates report for online assessments and technical interviews. Focus: hashing, streams, intervals, correctness under retries.
| Item | Typical expectation |
|---|---|
| Problems | 1-3 coding tasks depending on drive |
| Skills | hashing, streams, intervals, correctness under retries |
| Languages | Java, C++, Python (confirm invite) |
| Bar | Correctness first, then complexity |
Approach: Queue + frequency map.
Map<Integer, Integer> map = new HashMap<>();for (int i = 0; i < nums.length; i++) { // fill logic}Complexity: State time/space before coding. Test empty input and single-element cases.
Approach: Backtracking on non-zero balances.
from collections import defaultdictdef solve(arr): # fill logic return arrComplexity: State time/space before coding. Test empty input and single-element cases.
Approach: Deque of indices.
Map<Integer, Integer> map = new HashMap<>();for (int i = 0; i < nums.length; i++) { // fill logic}Complexity: State time/space before coding. Test empty input and single-element cases.
Approach: Timestamp queue.
from collections import defaultdictdef solve(arr): # fill logic return arrComplexity: State time/space before coding. Test empty input and single-element cases.
Approach: Prefix sum hash map.
Map<Integer, Integer> map = new HashMap<>();for (int i = 0; i < nums.length; i++) { // fill logic}Complexity: State time/space before coding. Test empty input and single-element cases.
Approach: Sort + merge intervals.
from collections import defaultdictdef solve(arr): # fill logic return arrComplexity: State time/space before coding. Test empty input and single-element cases.
Approach: Bucketed timestamps.
Map<Integer, Integer> map = new HashMap<>();for (int i = 0; i < nums.length; i++) { // fill logic}Complexity: State time/space before coding. Test empty input and single-element cases.
| Day | Drill |
|---|---|
| Mon | Arrays + hashing (2 problems) |
| Tue | Two pointers / sliding window |
| Wed | Stacks / strings |
| Thu | Trees or graphs basics |
| Fri | Timed mock (2 problems / 90 min) |
| Sat | Re-solve Friday misses cold |
| Sun | Light CS theory + rest |
Preparation Guide
Week-by-week plan for Mastercard.
Aptitude / Mock Quiz
Timed aptitude practice when relevant.
Interview Experience
What happens after coding rounds.
Mastercard Hub
Full process and eligibility.
Visa · PayPal · American Express · PhonePe · Stripe · Google