SIG (Susquehanna)Software EngineerSoftware DeveloperQuestion #79

Given a CSV file where each row contains: person name, car name, miles driven since last fill-up (float), gallons filled at this fill-up (integer), and the fill-up date, write a program to calculate the miles per gallon (MPG) for each car a person has driven during a specific date range (inclusive). Implement a function GetRangeMPG(PersonName, StartDate, EndDate) that returns a list of objects containing (CarName, MPG), where MPG is calculated as total miles driven divided by total gallons filled within the date range.

Unlock the Full Solution

Enter your email to get the detailed step-by-step solution to this SIG (Susquehanna) interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 120+ SIG (Susquehanna) Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call