Key Store With Sum-Dependency Cascades

Asked at Airbnb · Coding Questions · Difficulty: Medium · Last asked May 19, 2026

Implement a key store supporting `set_value(k, v)`, `set_sum(k, [other_keys])`, and `get_value(k)`. Updating a base key cascades through all dependent sum keys.

Loading the problem…