MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / unfollow

Method unfollow

python/0355-design-twitter.py:33–35  ·  view source on GitHub ↗
(self, followerId: int, followeeId: int)

Source from the content-addressed store, hash-verified

31 self.followMap[followerId].add(followeeId)
32
33 def unfollow(self, followerId: int, followeeId: int) -> None:
34 if followeeId in self.followMap[followerId]:
35 self.followMap[followerId].remove(followeeId)

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected