Harvey AI Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Handle multi-source string matching and tagging
Question Given an LLM output string and a list of source strings, design an algorithm to count how many times each source appears in the output. Exten...
Design an in-memory file system with limits
Design and implement an in-memory hierarchical file system. Requirements: 1) addFile(String path): Given an absolute path like "path/to/somewhere/file...
Design a production file storage service
System Design: Production-Grade File Storage Service Problem Design a production-grade file storage service with the following APIs, semantics, and co...
Determine identical files ignoring metadata
Determine Byte-Identical Files Using Hashing (Ignore Filesystem Metadata) Context Assume we care only about the raw file contents (the byte stream rea...
Design a constrained in-memory file system
Design an in-memory hierarchical file system. Implement: 1) addFile(String path): Given a UNIX-style absolute path like "/path/to/somewhere/file.txt",...
Determine if two files are identical
Determine Whether Two Files Are Identical at Scale Context You need a robust, scalable method to decide if two files (potentially very large and locat...