Snapshot Set Iterator

Problem: Snapshot Set Iterator

Design a SnapshotSet that supports snapshot iterators.

The set should support the following operations:

  • add(x): add element x to the set. If x already ex...

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: