Filter Reddit Comment Subtrees by User Preference
You are given a dictionary of Reddit comments. Each comment contains:
id: a unique integer comment ID.parent_comment: the ID of its parent comment;Nonefor a root comment.body: comme...
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:
