Affirm LeetCode Questions
10 questions all-time · 1 easy · 6 medium · 3 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Insert Delete GetRandom O(1) Array, Hash Table, Math, Design, Randomized | Medium | 100 | 0.6% |
| 2 | Shortest Uncommon Substring in an Array Array, Hash Table, String, Trie | Medium | 87 | 0.5% |
| 3 | Parse Lisp Expression Hash Table, String, Stack, Recursion | Hard | 79 | 0.5% |
| 4 | Group Anagrams Array, Hash Table, String, Sorting | Medium | 70 | 0.7% |
| 5 | Insert Delete GetRandom O(1) - Duplicates allowed Array, Hash Table, Math, Design, Randomized | Hard | 70 | 0.4% |
| 6 | String Compression Two Pointers, String | Medium | 66 | 0.6% |
| 7 | Design Hit Counter Array, Binary Search, Design, Queue, Data Stream | Medium | 62 | 0.7% |
| 8 | Valid Anagram Hash Table, String, Sorting | Easy | 62 | 0.7% |
| 9 | Coin Change Array, Dynamic Programming, Breadth-First Search | Medium | 57 | 0.5% |
| 10 | Optimal Account Balancing Array, Dynamic Programming, Backtracking, Bit Manipulation, Bitmask | Hard | 49 | 0.5% |
How to read this list
The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.
Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.