Event Logs and CSV Data
Affirm's recent phone screens look a lot like a day of backend work. You get rows from an event log or a few CSV files and write the code that turns them into one answer.
Each one is a hash map pass underneath, keyed on whatever the rows share. The code is short once the rules are pinned down.
Date bounds, blank fields and rows that point at nothing all change the output, so settle those first and the code stays short. The older event-log problems are in The Machine-Coding Round.
AffirmPremium lesson · Coding round
The 3 Affirm problems are below.
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Easy
- A Premium questionCoding · Medium
Each with hints, the follow-up and a tested solution.
Get the Affirm questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
Affirm interview guideKnow what Affirm asks before you walk in.
24 coding · 2 system design · 13 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.