首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
itinerary专题
Convenient itinerary technical support
If you have any questions, please contact us in time on the official website
阅读更多...
Reconstruct Itinerary
一道好题,要常做常新。当中犯了两个错误: 1. 对于[["JFK","KUL"],["JFK","NRT"],["NRT","JFK"]],会有这样的错误: ["JFK","KUL","NRT","JFK"] 2. 对于sjc,是没有queue的,所以必须判断queue为空的情况 public class Solution {List<String> res = new Linke
阅读更多...