mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
Time: 72 ms (51.22%), Space: 14 MB (88.30%) - LeetHub
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
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) ]
|
||||
Reference in New Issue
Block a user