Advertisement
Guest User

Untitled

a guest
May 29th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class Node(){
  2. Node left;
  3. Node right;
  4. int x;
  5. }
  6.  
  7. main(){
  8. public int recursive(Treenode root){
  9. return (root==null?0:(root.left<root.right?:(root.right:root.left)))+1;
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement