Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,534 questions · 341 companies · 1,080 reported by candidates
Showing 11,534 results
Implement a Bloom Filter data structure that supports insert, delete, and lookup operations in O(log n) time.
Design a scalable search system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given three sorted arrays, merge them into a single sorted result.
Design a high-throughput data pipeline system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a low-latency caching system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a geo-distributed load balancing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given a string, implement the Sliding Window algorithm to find the length of the longest substring without repeating characters. Your function should take a single string as input and return an integer representing the length of the longest substring.
Affirm's 'No Asshole' rule means disagreements must be handled with respect and humility. Share a time you pushed back on a technical or product decision while maintaining a positive working relationship.
Design a event-driven recommendation system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time url shortening system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design an end-to-end retrieval-augmented generation pipeline covering query parsing, hybrid retrieval, multi-stage reranking, context window packing, and hallucination mitigation.
Describe a situation where you had to balance shipping quickly with ensuring adequate security measures. How did you evaluate the risk and what was the outcome?
Design a job queue system that schedules and executes cloud scanning tasks across multiple regions and cloud providers with priority management, tenant isolation, and failure recovery.
Design and implement a Least Recently Used cache with O(1) get and put operations. Include proper eviction logic and handle all edge cases.
Given a list of transactions between users (who paid whom and how much), find the minimum number of payments needed to settle all debts. This models Affirm's internal settlement optimization between merchants.
Design a low-latency analytics system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Affirm's coding rounds test codebase navigation. This behavioral question extends that theme to assess how you approach learning new systems, building relationships with teammates, and becoming productive quickly.
Design a multi-tenant search system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Describe transformers in depth, including how it works, when to use it, and common pitfalls.
Automated ML-based policy compliance screening at millions-of-videos-per-day scale with human review escalation and regional legal compliance.
Get the full picture with our company interview guides.