Task: Interleaving Two NumPy Arrays Efficiently
Task: Interleaving Two NumPy Arrays Efficiently: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python function that efficiently interleaves two NumPy arrays of equal length. Given two arrays a and b , the function should produce a new array c where elements from a and b…
The task
You need to write a Python function that efficiently interleaves two NumPy arrays of equal length. Given two arrays `a` and `b`, the function should produce a new array `c` where elements from `a` and `b` alternate.
Part of PrimeIntellect/Terminal-Lego-15k.