Closed Jessidhia closed 7 years ago
4.c.iv.2 will correctly set the targetIndex to point one past the end of the array flattened by the recursive call; but 4.d will then increment targetIndex once again, potentially creating a hole in the target array.
Good call.
4.c.iv.2 will correctly set the targetIndex to point one past the end of the array flattened by the recursive call; but 4.d will then increment targetIndex once again, potentially creating a hole in the target array.