Social Graph Snapshot

Problem

Implement a directed social graph with historical snapshots. Support following, unfollowing, taking snapshots, and querying historical follow relationships.

Reconstruction note: The po...

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: