python one liner
\nclass Solution(object):\n    def distanceBetweenBusStops(self, d, i, j):\n        return min(sum(d) - sum(d[i:j]), sum(d[i:j])) if i < j else min(sum(d) - sum
```\nclass Solution(object):\n    def distanceBetweenBusStops(self, d, i, j):\n        return min(sum(d) - sum(d[i:j]), sum(d[i:j])) if i < j else min(sum(d) - sum(d[j:i]), sum(d[j:i]))\n```
[]