formatting
This commit is contained in:
@@ -8,7 +8,7 @@ In this assignment you will develop a program to manage youtube comments, let's
|
||||
|
||||
## Background
|
||||
|
||||
A reddit user complained about this:[Why are YouTube comments not threaded like reddit comments? Why is there only one level of nestedness?](https://www.reddit.com/r/youtube/comments/8uei3n/why_are_youtube_comments_not_threaded_like_reddit/).
|
||||
A reddit user complained about this: [Why are YouTube comments not threaded like reddit comments? Why is there only one level of nestedness?](https://www.reddit.com/r/youtube/comments/8uei3n/why_are_youtube_comments_not_threaded_like_reddit/).
|
||||
|
||||
The complaint is saying that on reddit you will get a nested comment chain like this:
|
||||
|
||||
@@ -28,7 +28,7 @@ A: This video is fake
|
||||
C: How can you be so dumb?
|
||||
```
|
||||
|
||||
Now, is C replying to B or to A? In fact, Youtube does manage their comments in trees, but they only allow the trees to have two levels: parent and children, but there are no grandchildren, and that's what this user refers to as "only one level of nestedness". In order to support multiple level of nestedness, we need to create trees with more than two levels, and that is what you do in this assignment, your goal is to write a program to make youtube display comments the better way, so users can see which comment is a reply to which comment.
|
||||
Now, is C replying to B or to A? In fact, on YouTube, even if C relies to B, you will still get something like this. The problem is, YouTube does manage their comments in trees, but they only allow the trees to have two levels: parent and children, but there are no grandchildren, and that's what this user refers to as "only one level of nestedness". In order to support multiple level of nestedness, we need to create trees with more than two levels, and that is what you do in this assignment, your goal is to write a program to make youtube display comments the better way, so users can see which comment is a reply to which comment.
|
||||
|
||||
If you are still not clear about this problem, try to reply to a comment on youtube, and make sure you reply to a comment which is already a reply to another comment.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user