public class Solution { public int minDifference (TreeNode root) { List<Integer> list = new ArrayList<>(); // 首先进行中序遍历,二叉搜索树中序遍历的结果是单调递增的 inOrder(root, list); int len = list.size(); int[] nums = new int[len - 1]; // 计算出所有差值 for ...