#1026. Maximum Difference Between Node and Ancestor
https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/submissions/1143717619/?envType=daily-question&envId=2024-01-11
function maxAncestorDiff(root) {
if (!root) return 0
function dfs(node, minAncestor, maxAncestor) {
...
karleb.hashnode.dev1 min read