leetcode给出的数组形式的二叉树应该是通过(https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/)序列化二叉树构造的,不存在你说的问题