Long.MAX_VALUE, Long.MIN_VALUE
: or, will fail by the test case 2147483647;BST
: cannot equal;- dfs template: terminate condition first, then recursively call function, i.e.
root==null, return
androot.val >= mx || root.val <= mn, return
1 | class Solution { |