height数组的求解