Affirm Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
3Questions
1Company
3 Questions 1 Company
Showing 3 results
Affirm
Easy
Software EngineerImplement an LRU cache
Problem Design and implement an LRU (Least Recently Used) cache that supports the following operations in average O(1) time: - get(key) -> value: Retu...
Coding & Algorithms
0
0
Nov 6, 2025
Affirm
Medium
Software Engineer LockedFind shortest unique substring per word
Shortest unique substring for each word You are given an array of distinct strings words. For each word w in words, find a non-empty contiguous substr...
Coding & Algorithms
0
0
Oct 27, 2025
Affirm
Medium
Software EngineerDetermine winner in optimal-play card game
Given a row of N cards with integer values (values may be positive, zero, or negative), two players alternately pick either the leftmost or rightmost ...
Coding & Algorithms
0
0
Jul 15, 2025