Day 25 of LeetCode
Documenting LeetCode solving.
Q77
355. Design Twitter
Medium. Min heap. Should be hard.
class Twitter:
def __init__(self):
self.count = 0
self.followMap = defaultdict(set) # userId -> set of followerId
self.tweetMap = def...
evelynsjourney.hashnode.dev2 min read