mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 23:07:08 +00:00
3 lines
174 B
Python
3 lines
174 B
Python
class Solution:
|
|
def shuffle(self, nums: List[int], n: int) -> List[int]:
|
|
return [ nums[int(i / 2)] if i % 2 == 0 else nums[n + int(i / 2)] for i in range(2 * n) ] |