Reconstruct Itinerary at eBay
Hard44.3% acceptance
This problem has 75.0% frequency at eBay.
Problem Description
You are given a list of airline `tickets` where `tickets[i] = [fromi, toi]` represent the departure and the arrival airports of one flight. Reconstruct the itinerary in order and return it. All of the tickets belong to a man who departs from `"JFK"`, thus, the itinerary must begin with `"JFK"`. If...
Read full problem and hintsTopics
Also asked at 21 companies
More eBay Questions
Remove One Element to Make the Array Strictly IncreasingEasyPartition Equal Subset SumMediumSubtree of Another TreeEasyMinimize Maximum Pair Sum in ArrayMediumSpiral MatrixMedium
View all eBay questions