MCPcopy Index your code
hub / github.com/TheAlgorithms/C / maxAncestorDiff

Function maxAncestorDiff

leetcode/src/1026.c:32–38  ·  view source on GitHub ↗

Depth First Search If The maximum diff is exists it should be the difference of the MAX or MIN value in the tree path to the LEAF Runtime: O(n) Space: O(1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

recursiveSolveFunction · 0.70

Tested by

no test coverage detected