JobsJob TrackerJob alerts

Affirm · 8 questions

All 8Coding 5System Design 2Behavioral 1
  • Insert Delete GetRandom O(1) - Duplicates AllowedCoding
  • Design Hit CounterCoding
  • Find the shortest unique substring for every string in a listCoding
  • High-level technical discussion of a recent project and past internshipBehavioral
  • Design WhatsappSystem Design
  • Dictionary with O(1) random deletionCoding
  • Evaluate a Decision TreeCoding
  • Design an RPC-based system for immutable clients with radio broadcast queueSystem Design
← Affirm questions
  1. Interview questions
  2. Affirm
  3. Design Hit Counter
CodingReported in a candidate post, May 2024

Design Hit Counter

Filed under Affirm · Also reported at Cloudflare

The question

Design a hit counter that records hits and returns the number of hits in the last 5 minutes.

No write-up yet. Related questions below have one.

Related Affirm questions

  • Insert Delete GetRandom O(1) - Duplicates Allowed
  • Find the shortest unique substring for every string in a list
  • Dictionary with O(1) random deletion
  • Evaluate a Decision Tree
← Insert Delete GetRandom O(1) - Duplicates AllowedFind the shortest unique substring for every string in a list →

Collected from public candidate posts and coding forums. Updated Nov 2026.