(tickets)
| 4 | * @return {string[]} |
| 5 | */ |
| 6 | var findItinerary = (tickets) => { |
| 7 | tickets.sort(); |
| 8 | |
| 9 | const graph = buildGraph(tickets); |
| 10 | |
| 11 | return dfs(tickets, graph); |
| 12 | }; |
| 13 | |
| 14 | const dfs = (tickets, graph, city = 'JFK', path = ['JFK']) => { |
| 15 | const isBaseCase = path.length === tickets.length + 1; |
nothing calls this directly
no test coverage detected