summer
summer
他那个测试案例是有回路的,在这个回路中递归就出现bug了。建议可以将回路抽象一个结点,使用循环来替代递归跑完这个回路。然后继续递归。 
```python import copy class Solution: def findItinerary(self, tickets: list[list[str]]) -> list[str]: self.build_dict(tickets) self.res_len = len(tickets) + 1 self.res = [] self.temp = ["JFK"] self.backtracking("JFK") return self.res def build_dict(self, tickets): """...
> > > How to solve this problem? > > > > > > Hey, I've met the same problem. Did you solve it? > > It seems the input...