adding readme and images
This commit is contained in:
@@ -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.
|
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.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
HOMEWORK 9: B+ TREES
|
HOMEWORK 9: Online Shopping
|
||||||
|
|
||||||
|
|
||||||
NAME: < insert name >
|
NAME: < insert name >
|
||||||
|
|||||||
BIN
hws/09_bplus_trees/images/amazon_price_range.png
Normal file
BIN
hws/09_bplus_trees/images/amazon_price_range.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
Reference in New Issue
Block a user