High-Concurrency Prompt Template Deduplication (Array + Hash Map)
Asked at Anthropic · Coding Questions · Difficulty: Hard
Normalize a large batch of prompt template strings into canonical keys and count how many templates map to each key, in time linear in the total input length.
Loading the problem…