Skip to content

Commit 06acf54

Browse files
committed
update test
1 parent 736da2c commit 06acf54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

greedy_methods/gas_station.py

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ def get_gas_stations(gas_quantities: list[int], costs: list[int]) -> list[GasSta
4343
4444
Returns:
4545
gas_stations [list]: a list of gas stations
46+
47+
Examples:
48+
>>> get_gas_stations([1, 2, 3, 4, 5], [3, 4, 5, 1, 2])
49+
[GasStation(gas_quantity=1, cost=3), GasStation(gas_quantity=2, cost=4), \
50+
GasStation(gas_quantity=3, cost=5), GasStation(gas_quantity=4, cost=1), \
51+
GasStation(gas_quantity=5, cost=2)]
4652
"""
4753
gas_stations = [
4854
GasStation(gas_quantity, cost)

0 commit comments

Comments
 (0)