0 day streak

Affirm coding interview questions

FintechProduct Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Insert Delete GetRandom O(1)Hash Map + Array Medium Design Data Structures Google, Amazon, Apple +50 Solve
Shortest Uncommon Substring in an ArrayHashing Medium Arrays & Hashing Airbnb, Atlassian Solve
Insert Delete GetRandom O(1) - Duplicates allowedHash Map + Array Hard Design Data Structures LinkedIn, Snowflake, Okta +1 Solve
Design Hit CounterQueue / Circular Buffer Medium Design Data Structures Google, Apple, Uber +21 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +82 Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +42 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +34 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Amazon, Microsoft +55 Solve
Optimal Account BalancingBitmask DP Hard Dynamic Programming Stripe, Pinterest, Zscaler +6 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Predict the WinnerInterval DP Medium Dynamic Programming Waymo, Goldman Sachs, Cisco +4 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Number of Recent CallsQueue / Circular Buffer Easy Design Data Structures Databricks, Roblox, Atlassian Solve
Contains Duplicate IISliding Window · Fixed Easy Arrays & Hashing Google, Netflix, Airbnb +4 Solve
Also reported, being added to AlgoRung (2)

Parse Lisp Expression · String Compression III

Questions people ask

What coding questions does Affirm ask most?

Insert Delete GetRandom O(1), Shortest Uncommon Substring in an Array, Insert Delete GetRandom O(1) - Duplicates allowed, Design Hit Counter, Group Anagrams, Valid Anagram, String Compression, Coin Change.

Which topics come up in Affirm coding rounds?

design data structure, hash maps, strings, graphs, simulation, dynamic programming.

How hard are Affirm coding questions?

Of the reported questions, 4 are easy, 8 medium and 2 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.