← Questions

Deduplicate files by size then content hash

0
AnthropicHarveyOpenAI+2CodingLast asked Sep 2026

A coding interview question asked in Harvey's technical phone screen and at Anthropic, OpenAI and 2 more companies, last asked Sep 2026. It tests filesystems, hashing and python.

Walk a directory tree and group files with identical content. Compare file sizes first so large files are hashed only when sizes collide, then hash the rest.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Harvey · Technical phone screen · Last asked Sep 202660 min · Live coding in a shared editor
  • Anthropic · Coding · Last asked Sep 202655 min · Live coding on a realistic, multi-part problem, a different one from the screen · No AI
  • OpenAI · Technical screen: system design · Last asked Apr 202660 min · Design discussion, sometimes drawn in Excalidraw; for some roles, on the same day as the coding screen
  • ElevenLabs · Practical coding · Last asked Apr 2026Hands-on coding on a small product: the dubbing review workflow, or a React app that plays audio with its transcript · One report says no LLMs
  • Applied Intuition · AI-assisted build · Last asked Feb 2026120 min · Build the designed system, or a small web app, in a prepared environment over two to three hours · Claude Code or a provided Claude model expected

What it tests

filesystems · hashing · python

Your code and the AI tutor open when you unlock this question.