leetle

Daily challenge for 2025-05-24

144. Shuffle Array

Write a function solve that shuffles an array by interleaving its first n elements with its last n elements.

Example:
Input: nums=[2,5,1,3,4,7], n=3
Output: [2,3,5,4,1,7]

Run this challenge interactively in Python or JavaScript when the app loads.