Software Engineer • Staff-Level
Software Engineer • Staff-Level
High QualityInterview Summary
The interview process with StackAdapt starts with a technical phone screen followed by three virtual onsite rounds. The interviews covered implementing a thread-safe sliding-window rate limiter, selecting advertising campaigns based on bid prices and targeting criteria, behavioral questions, and designing a Reddit-like platform.
The technical screen emphasized concurrency and request tracking, while the onsite coding round focused on data structures for matching advertising campaigns. The system design round involved database schemas, partitioning, and scalability, and I felt that this was probably my weakest round.
Interview Details
Technical Screen — Coding: Sliding Window Rate Limiter
My technical screen focused on implementing a sliding-window rate limiter that restricts the number of requests each client can make within a configurable period. The interviewer also asked system design questions related to the rate limiter after discussing the implementation. The rate limiter needed to maintain separate request histories for different clients. A request should be allowed only if accepting it would not exceed that client's configured limit within the current rolling time window.
The implementation had to satisfy several requirements:
- Per-Client Tracking: Each client maintains an independent request count.
- Sliding Window: Only requests within the configured time window contribute to the limit.
- Allow or Deny: Each request returns an acceptance decision, and accepted requests are recorded.
- Thread Safety: Concurrent requests must be handled correctly.
- Memory Efficiency: Expired request timestamps should be
Unlock Full Details
Create a free account to unlock this interview experience report.