Algorithm · Databricks · Medium
Space-Efficient Snapshot Set Medium · Design, Hash Table · Company Tags · Hints Implement a snapshot set data structure that balances time and space efficiency. The structure should expose the following operations: add_version(number: int) -> None – records a new version identifier. add_set(item_set: Set[int]) -> None – assigns the given set to the most recently recorded version that has not yet received a set. remove_set(item_set: Set[int]) -> None – deletes the version…
Checking your access…