All Posts

1582 articles

dsa5 min read

Design a File System — Trie-Based Path Storage

Implement a file system that creates paths and associates integer values with them. Uses a HashMap mapping full path strings to values with O(L) operations—a pattern used in virtual file systems and etcd.

Read →
dsa6 min read

Time Based Key-Value Store — Binary Search on Timestamps

Design a time-stamped key-value store that retrieves the latest value at or before a given time using binary search on sorted timestamp lists. Google and Amazon test this to evaluate versioned data design and binary search mastery.

Read →
Page 155 of 317