← Questions

Repository Merkle tree hashing and change detection

0
CursorCodingLast asked Sep 2026

Hash a code repository into a Merkle tree over files and directories so changed paths are found by comparing hashes top-down instead of rescanning everything. Reported on 1point3acres' Cursor bank; reconstructed in our own words.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding