⭐One-Liner Hack in 🐍|| Two Approaches⭐
Code - 1\npy\nclass Solution:\n    def destCity(self, paths: List[List[str]]) -> str:\n        return (set(city[1] for city in paths) - set(city[0] for city in 
# Code - 1\n```py\nclass Solution:\n    def destCity(self, paths: List[List[str]]) -> str:\n        return (set(city[1] for city in paths) - set(city[0] for city in paths)).pop()\n```\n---\n# Code - 2\n```py\nclass Solution:\n    def destCity(self, paths: List[List[str]]) -> str:\n        return next(city[1] for city in paths if city[1] not in {path[0] for path in paths})\n```\n---\n\n# Which of these is more optimized?\n---\n_If you like it, promote it._\n\n---
['Python3']