MCPcopy Create free account
hub / github.com/Ewenwan/ShiYanLou / get_depth

Function get_depth

learn_python/algorithm/tree/is_balanced.py:8–18  ·  view source on GitHub ↗

return 0 if unbalanced else depth + 1

(root)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

is_balancedFunction · 0.85

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected