Debug Python LRU Cache-Key Construction

Read the full interview experience this question came from →

Quick 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.

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

Anthropic logo
Anthropic
Jul 8, 2026
hardSoftware EngineerOnsiteSoftware Engineering Fundamentals
73
0
Loading...