Design a Follow Relationship Store
Problem
Design and implement a data structure that stores follow relationships for a social product and supports follow and unfollow. Relationships are directed: A following B does not imply B ...
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:
