I\'m trying to know whether my code is right or wrong with your help, because sadly I can\'t run it to check.
There are no compile errors. What I\'m trying to do is to
Really compact version:
public int height(RBNode t) { if (t == null) { return 0; } return Math.max(height(t.left), height(t.right)) + 1; }