Interview Intel · Affirm

Affirm coding interview
questions, leaked.

11 problems reported across recent Affirm interviews. Top patterns: array, hash table, string. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Affirm's interview filters hard on arrays, hash tables, and strings. You'll see 6 problems per topic across 11 total questions, split 2 easy, 7 medium, 2 hard. That's a stacked middle tier. Design problems show up frequently too, which means you're not just grinding brute force. If you haven't built a data structure from scratch under time pressure, that's the gap. StealthCoder runs invisibly during your live assessment, so if you hit a wall on Insert Delete GetRandom or Parse Lisp Expression mid-OA, you get a working solution in seconds.

Tracked problems
11
Easy
2/ 18%
Medium
7/ 64%
Hard
2/ 18%

Top problems at Affirm

leaked_problems.csv11 rows
#ProblemDiffFrequency
01Insert Delete GetRandom O(1)MEDIUM
100.0
02Shortest Uncommon Substring in an ArrayMEDIUM
81.0
03Group AnagramsMEDIUM
76.6
04Parse Lisp ExpressionHARD
74.9
05Design Hit CounterMEDIUM
73.0
06Insert Delete GetRandom O(1) - Duplicates allowedHARD
70.9
07String CompressionMEDIUM
68.4
08Valid AnagramEASY
65.6
09Coin ChangeMEDIUM
58.3
10String Compression IIIMEDIUM
45.8
11Number of Recent CallsEASY
45.8

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Affirm OA. The proctor cannot see it. Screen share cannot detect it. Built by an Amazon engineer who realized the OA tests how well you memorized 200 problems, not how well you code.

Get StealthCoder
Topic distribution
What this means

Array and hash-table problems dominate equally, and they're often combined. Shortest Uncommon Substring, Group Anagrams, and Valid Anagram all test your fluency with both simultaneously. String shows the same frequency, which means you can't skip compression or character-frequency drills. The two hard problems are design-heavy (Insert Delete GetRandom with duplicates, Parse Lisp Expression), so one of your two hardest questions will likely require you to think architecturally, not just code a loop. Design Hit Counter and Number of Recent Calls teach you to think in queues and time windows. Start with hash-table plus array combos, then nail string problems, then move to design. StealthCoder is your safety net if a design constraint blindsides you during the actual OA.

Companies with similar patterns

If you prepped for Affirm, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Affirm.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Built by an Amazon engineer who realized the OA tests how well you memorized 200 problems, not how well you code. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Affirm interview FAQ

Should I spend more time on arrays or hash tables for Affirm?+

Both equally. They appear 6 times each in their pool and are almost always paired. Hash tables let you solve array problems faster, so start hash table first, then practice combining them. Group Anagrams and Shortest Uncommon Substring are your templates.

How many design problems should I prepare for?+

Four design problems appear in Affirm's data. Insert Delete GetRandom (both versions) and Design Hit Counter are must-knows. Practice building simple data structures with O(1) operations, because at least one question will demand architectural thinking, not just iteration.

Is string really that important for Affirm?+

Yes. Six string problems in 11 total questions. Valid Anagram, String Compression, Parse Lisp Expression, and Shortest Uncommon Substring cover the range. If you're weak on character counting or recursion-based parsing, drill those now before your OA.

What's the difficulty split I should expect?+

Mostly medium (7 of 11). Two easy warm-ups, two hard problems that will likely be design-based. The mediums are where you prove you can code fast and clean. Don't overweight hard-problem prep; nail the mediums under time pressure.

Do I need to know binary search and tries for Affirm?+

Binary search appears once (Design Hit Counter), trie once (Shortest Uncommon Substring). Not core focus, but Design Hit Counter combines binary search with queue logic, so review it. Tries are nice-to-have but lower priority than arrays and hash tables.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Affirm. StealthCoder is not affiliated with Affirm.