现在机票信用卡,有什么好的deal没?# PennySaver - 省钱一族
m*k
1 楼
List of tickets, in the form (origin,destination)
ORIGINAL_TICKETS = [ ('SFO', 'LAX'), ('LAX', 'JFK'), ('JFK','LHR'), ('LHR'
, 'CDG'), ('CDG', 'DXB'), ('DXB', 'HKG'), ('HKG', 'HAM'),]
Write a function which given the original origin, find the final destination
.Then write a function that would find both the original origin and
finaldestination with only access to that ticket list. Finally write a
function thatfinds a missing ticket given the original origin and final
destination.
ORIGINAL_TICKETS = [ ('SFO', 'LAX'), ('LAX', 'JFK'), ('JFK','LHR'), ('LHR'
, 'CDG'), ('CDG', 'DXB'), ('DXB', 'HKG'), ('HKG', 'HAM'),]
Write a function which given the original origin, find the final destination
.Then write a function that would find both the original origin and
finaldestination with only access to that ticket list. Finally write a
function thatfinds a missing ticket given the original origin and final
destination.