Guest User

Untitled

a guest
Jul 26th, 2012
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int avh1(Tree t) {
  2.   if ( t.left == Tree.EMPTY && t.right == TREE.EMPTY ) {
  3.     return 0;
  4.   }
  5.   else {
  6.     return (  t.left.leafCount*(avh1(t.left) + 1)
  7.             + t.right.leafCount*(avh1(t.right) + 1))
  8.           /  (t.left.leafCount() + t.right.leafCount());
  9.   }
  10. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×