Debug Python LRU Cache-Key Construction
Company: Anthropic
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: hard
Interview Round: Onsite
Overview: Debug a Python LRU memoization decorator whose cache keys depend incorrectly on argument spelling and keyword order. Build canonical signature-bound keys, freeze only supported nested values with type distinctions, preserve exception behavior, and explain safe thread synchronization.
Read the full Anthropic Software Engineer interview experience this question came from