Anthropic logo

Anthropic Medium Interview Questions

4 medium-level practice questions for Anthropic technical interviews

coding Medium Verified Question #1

1. Convert Stack Samples To A Trace


Category: Interval-based coding problem
# Description Sampling profilers capture the call stack at periodic intervals to analyze program performance. However, most trace visualization tools...
Input: List
Output: Computed result
coding Medium Verified Question #2

2. Find Duplicate Files


Category: String coding problem
# Description Given a list of file paths in a directory system, find all duplicate files. Two files are considered duplicates if they have identical...
Input: List
Output: Array
coding Medium Verified Question #3

3. Service Log Aggregator


Category: Trie-based coding problem
A distributed system emits log entries from multiple services and worker threads. Each log entry is a colon-separated string in the format...
Input: Array
Output: Computed result
coding Medium Verified Question #4

4. Longest Match Tokenizer


Category: Array coding problem
You are given a text string text and a dictionary array where each element is in the format "<key>:<id>". Here key is a token string and id...
Input: Array
Output: Computed result

No AI generated questions yet for Anthropic.

Start practicing Anthropic questions

Sign up for free to access walkthroughs, AI-generated questions, and more.

Get Started Free