[LeetCode] 1026. Maximum Difference Between Node and Ancestor 结点与其祖先之间的最大差值

Given the of a binary tree, find the maximum value for which there exist different nodes and where and is an ancestor of . A node is an ancestor of if
posted @ 2021-02-12 12:16  Grandyang  阅读(734)  评论(0编辑  收藏  举报
Fork me on GitHub