Feature #9: Products in Price Range
Implementing the "Products in Price Range" feature for our "Amazon" project.
We'll cover the following
Description
In this feature of the Amazon website, we want to implement a search filter that searches for products in a given price range. The product data is given to us in the form of a binary search tree, where the values are the prices. We will be given the parameters low
and high
; these represent the price range the user selected. This range is inclusive.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.