Quiz: Algorithms
Which car is the better deal?
- Car 1
- Car 2
- Same price
- Not enough information
If you only drive a few miles, or if gas is free, car 1 will be cheaper. But if not, car 2 might be better. We need to know the miles driven and the price of gas.