Python One-Liner
nobody:\nlist compehension:\n\nclass Solution:\n    def constructArray(self, n: int, k: int) -> List[int]:\n        return [(i//2+1 if i%2==0 else k+1-i//2) for
nobody:\nlist compehension:\n```\nclass Solution:\n    def constructArray(self, n: int, k: int) -> List[int]:\n        return [(i//2+1 if i%2==0 else k+1-i//2) for i in range(k+1)] + [i for i in range(k+2, n+1)]\n```
['Python']