Cursor logo

Cursor Interview Question Bank

Cursor screens for engineers who can ship working code in a realistic environment: coding rounds run against a real repository and are judged on complete, self-tested solutions within the hour rather than on puzzle cleverness. The loop is sequential and practical throughout, with product-adjacent design, a project deep dive and a hiring-manager conversation leading to an in-person work trial.

Coding problems
10
Before you start
Showing 11 of 11
Coding·60 min
HighFree preview

Merkle Tree over a Repository: Hash & Diff

Build a Merkle tree over the provided repo, where folders are N-ary nodes and files are leaves (file hash = given function over contents; folder hash = hash of concatenated child hashes). Implement get_hash, locate changed files after edits, and diff two trees into (path, ADDED/MODIFIED/REMOVED). Some versions add a follow-up on optimizing client/server sync. 45–60 minutes, with your own tests.

SWE
merkle-tree
hashing
filesystem
tree
+2
8 related discussions