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. Find the shortest unique substring for every string in a list
CodingReported in a candidate post, May 2024

Find the shortest unique substring for every string in a list

Filed under Affirm

The question

Given a list of strings, find for each string the shortest substring that appears only in that string.

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

Related Affirm questions

  • Insert Delete GetRandom O(1) - Duplicates Allowed
  • Design Hit Counter
  • Dictionary with O(1) random deletion
  • Evaluate a Decision Tree
โ† Design Hit CounterHigh-level technical discussion of a recent project and past internship โ†’

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