Harvey Ai Interview Questions
Practice the exact questions companies are asking right now.
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...
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...
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...
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...
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",...
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...