efficient_bazaar_assignment
Assumptions
Assumption 1 - CSV file is small enough to fit into the RAM. Otherwise will have to use external database. Assumption 2 - First row of csv will be headers names(id, vendor, product name ..etc). Assumption 3 - This Ruby Code script residing in the same directory as products.csv file Assumption 4 - Ruby 2.3.0 installed in the running system
Instructions To run
- Open terminal and Go to the directory where this ruby(.rb) file exists.
- run $ruby temp_code.rb
- The output will be array of cheapest prices, expensive prices and cheapest prices for selective products