#26. makeMiddle
makeMiddle
Background
Description
Given an array of ints of even length, return a new array length 2 containing the middle two elements from the original array. The original array will be length 2 or more.
Format
Input
Output
Samples
[1 2 3 4]
[2, 3]
[7 1 2 3 4 9]
[2, 3]
[1 2]
[1, 2]
Limitation
1s, 1024KiB for each test case.