Why does this code to check if a binary tree is balanced take time O(n log n) when it recomputes depths multiple times?

NoSuchKey

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=131948&siteId=1