From 8db8aaadf87671d94d97089a106c3f18eb7835f4 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Thu, 2 Nov 2023 23:54:09 -0400 Subject: [PATCH] adding indent rules --- hws/08_youtube_comments/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hws/08_youtube_comments/README.md b/hws/08_youtube_comments/README.md index a8d5c20..68827be 100644 --- a/hws/08_youtube_comments/README.md +++ b/hws/08_youtube_comments/README.md @@ -198,10 +198,12 @@ To summerize the rules, in this homework, no sorting is needed. ### Indentation -Just like youtube, we use indentations to display the tree structure of the comments. More specifically, a child comment should be indented by four space characters relative to its parent comment. Sibling comments should have the same identation. +Just like youtube, we use indentations to display the tree structure of the comments. The following image is an example from youtube: ![alt text](comments_indentation.png "comments indentation") +In this assignment, we define that a child comment should be indented by four space characters relative to its parent comment. Sibling comments should have the same identation. + ## Program Requirements & Submission Details In this assignment, you are required to maintain the comments in tree nodes, each comment should be stored in one tree node. You are NOT allowed to use any data structures we have not learned so far, but feel free to use any data structures we have already learned, such as std::string, std::vector, std::list, std::map, std::set, std::pair. **You must use recursion in your program in at least one of your functions.**