Available question text
Count how many comments each post has by grouping comment records by post_id and returning post_id with its comment_count. Ensure posts with no comments are included (use a left join/outer aggregation) and typically order results by post_id.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1241. Number of Comments per Post
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source