From 5b1792a589284f9b6fafa109fe37ddf6a41eb1ba Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Wed, 22 Nov 2023 01:30:45 -0500 Subject: [PATCH] more specific on the comparison operators --- hws/09_tiktok_trends/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hws/09_tiktok_trends/README.md b/hws/09_tiktok_trends/README.md index 676b3e5..cf03943 100644 --- a/hws/09_tiktok_trends/README.md +++ b/hws/09_tiktok_trends/README.md @@ -213,7 +213,7 @@ hashtag A is used 1000 times, hashtag B is used 1000 times, but all the posts wh Example 3: -hashtag A and hashtag B are both used 100 times, and their associated videos are both view 1000 times. hashtag A is "#tstheerastour", and hashtag B is "#swifttok", both are std::string objects. Then, "#swifttok" will be the winner, because "#swifttok" is smaller than "#tstheerastour". +hashtag A and hashtag B are both used 100 times, and their associated videos are both view 1000 times. hashtag A is "#tstheerastour", and hashtag B is "#swifttok", both are std::string objects. Then, "#swifttok" will be the winner, because "#swifttok" is smaller than "#tstheerastour" when we use the comparison operators (<, <=, >, >=) directly on these two std::string objects. Some differences between the expected output file and what TikTok actually shows: