110. Balanced Binary Tree (divide & conquer)

based on 104

time: O(n)

space: O(n)

no global variable

this one use -1 to represent not balanced

use 2 variable return value (more formal

using array to avoid global variable

Last updated

Was this helpful?