I think a check for this corner case where data is empty but the offset array has an offset can be added in MapArray::FromArraysInternal. In this case the offset should not be applied to the child ...
An array is considered special if every pair of its adjacent elements contains two numbers with different parity. You are given an array of integers nums. Return true if nums is a special array, ...