super clear  🐍 illustrated explanation
<-- pleasev vote\n\n\n\n    def mostVisited(self, n: int, rounds: List[int]) -> List[int]:\n        """ O(N)TS"""\n        a, _, b = rounds\n        return rang
<-- pleasev vote\n\n![image](https://assets.leetcode.com/users/images/558e68c6-5e51-4922-8d87-e8d6bb688cd1_1652612482.595228.png)\n\n    def mostVisited(self, n: int, rounds: List[int]) -> List[int]:\n        """ O(N)TS"""\n        a, *_, b = rounds\n        return range(a, b + 1) or (*range(1, b + 1), *range(a, n + 1))\n\nexplanation\n\n![image](https://assets.leetcode.com/users/images/e10d5c52-a26c-41bb-9203-22ecac358d1c_1652612510.5633755.png)\n
[]