Java 9ms Straightforward Solution | HashMap
\nclass Solution {\n    public String destCity(List<List<String>> paths) {\n        if(paths==null || paths.size()==0) return "";\n        Map<String, String> m
```\nclass Solution {\n    public String destCity(List<List<String>> paths) {\n        if(paths==null || paths.size()==0) return "";\n        Map<String, String> map = new HashMap<>();\n        for(List<String> path : paths) {\n            map.put(path.get(0), path.get(1));\n        }\n        for(String city : map.values()) {\n            if(!map.containsKey(city)) {\n                return city;\n            }\n        }\n        return "";\n    }\n}\n```
[]