diff --git a/hws/09_bplus_trees/README.md b/hws/09_bplus_trees/README.md index 21151df..6c7425c 100644 --- a/hws/09_bplus_trees/README.md +++ b/hws/09_bplus_trees/README.md @@ -27,7 +27,7 @@ Here: When running the above command, your program should print all products whose prices fall into the [min,max] range. The [min, max] range concept is similar to the following box you see on Amazon. -![alt text](amazon_price_range.png "amazon price range") +![alt text](images/amazon_price_range.png "amazon price range") For all products fall into that price range, sort them based on the rating in a descending order - products with a higher rating being displayed first. If there is a tie, break the tie by prices - products with a lower price being displayed first. If there is still a tie, i.e. two products have the same rating, and have the same price, break the tie by comparing the title of the products, i.e., apply the less than operator (<) to the two titles - both are std::strings, the product whose title is less than the title of the other product should be displayed first. diff --git a/hws/09_bplus_trees/README.txt b/hws/09_bplus_trees/README.txt index fd031b7..bcd78b4 100644 --- a/hws/09_bplus_trees/README.txt +++ b/hws/09_bplus_trees/README.txt @@ -1,4 +1,4 @@ -HOMEWORK 9: B+ TREES +HOMEWORK 9: Online Shopping NAME: < insert name > diff --git a/hws/09_bplus_trees/images/amazon_price_range.png b/hws/09_bplus_trees/images/amazon_price_range.png new file mode 100644 index 0000000..153ae2b Binary files /dev/null and b/hws/09_bplus_trees/images/amazon_price_range.png differ