Harvey coding interview

Round 4 of 7 · 10 questions reported

See the whole loop
Length
60 min
Format
Live practical coding
They grade
Structure, edge cases and how you take hints; a follow-up changes a constraint
AI use
Candidates report freedom to use the tools and languages they know; confirm with your recruiter
Heads-up
Reported problems include finding every occurrence of a phrase in a long document and merging intervals. Interviewers run their own, sometimes hidden, tests, and recent loops expect bug-free code. ML roles get a Colab round on a small RAG pipeline instead.

Questions Harvey asks in this round 10

  • Citation tagging over generated textCodingGiven generated text and source phrases, wrap every matched region in citation tags, merging overlaps and attributing each block to its sources ordered by frequency. Covers the…
    Last asked Sep 2026
  • Mini spreadsheet with formulas and cycle detectionCodingBuild a mini spreadsheet with cell get and set, formula evaluation over dependencies, cached values with eager updates, and cycle detection. Covers the bank's spreadsheet variants…
    Last asked Oct 2026
  • RAG notebook with retrieval and evaluationCodingIn a notebook with helpers provided, fill in a small retrieval pipeline: embed texts from a data frame, retrieve top matches by cosine similarity, and run a short evaluation…
    Last asked Sep 2026
  • In-memory file system with files and foldersCodingImplement an in-memory file system with path-based file and folder access, plus follow-ups on per-directory limits, duplicate names and identical contents. Covers the bank's vault…
    Last asked Sep 2026
  • Embedding retrieval with cosine similarityCodingRetrieve the most similar embeddings to a query by cosine similarity over a small candidate set. Reported on 1point3acres' Harvey bank; reconstructed in our own words.
    Last asked Sep 2026
  • Database connection poolCodingAgainst a mocked database query, implement a connection pool with acquire and release over a fixed set of reusable connections. Reported on 1point3acres' Harvey bank;…
    Last asked Apr 2026
  • Live string editing with a mouse cursorCodingImplement live string editing operations positioned by a mouse cursor. Reported on 1point3acres' Harvey bank; reconstructed in our own words.
    Last asked Apr 2026
  • Implement an LRU cacheCodingImplement a least-recently-used cache with get(key) and put(key, value), both in O(1) time, with a fixed capacity.
  • Read-through and write-through cache adapterCodingImplement a cache adapter that reads through to the backing store on misses and writes through on updates. Reported on 1point3acres' Harvey bank; reconstructed in our own words.
  • Versioned key-value vault with consistency checkCodingDesign a versioned key-value vault with filesystem-like structure and a consistency check across versions. Reported on 1point3acres' Harvey bank; reconstructed in our own words.