Convert Stack Samples to Trace Events
Anthropic interview questions · Medium · Coding round · reported 41× · 6 tests
Turn sampled call stacks into minimal start/end events; the key invariant is comparing adjacent stacks by common prefix, not by set membership.
The full question, tests and reference solution are available with a plan that includes Anthropic.
Run your code with Ctrl+Enter to see results.