Find maximum ( or minimum ) in Binary Tree | Returns the min value in a binary tree
static int findMin ( Node node ) { if ( node == null ) return Integer . MAX_VALUE ; int res = node . data ; int lres = findMin ( node . left ) ; int rres = findMin ( node . right ) ; if ( lres < res ) res = lres ; if ( rres < res ) res = rres ; return res ; }