摘要: class Solution { public int canCompleteCircuit(int[] gas, int[] cost) { int total=0,cur=0,start=0; for(int i=0;i=0?start:-1; } } 阅读全文
posted @ 2017-10-07 05:07 Weiyu Wang 阅读(124) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public UndirectedGraphNode cloneGraph(UndirectedGraphNode node) { if(node==null) return null; Map map=new HashMap(); Queue que=new Link... 阅读全文
posted @ 2017-10-07 04:47 Weiyu Wang 阅读(122) 评论(0) 推荐(0) 编辑