Repository Merkle Tree Hashing and Change Detection

Given old and new repository snapshots, build Merkle trees for their file systems and report changed files.

Hashing rules

  • File hash: SHA-256(file_content).
  • Directory hash: sort direct chil...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: