GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — tree-notes/tempCodeRunnerFile.cpp at main · coder-writes/tree-notes Expand file tree/ Copy pathtempCodeRunnerFile.cppMore file actions 13 lines (9 loc) · 249 Bytes / Copy pathtempCodeRunnerFile.cppFile metadata and controls13 lines (9 loc) · 249 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 int maxHeight(TreeNode* root){ if(root==NULL) return 0; int lh = maxHeight(root->left); if(lh==-1) return -1; int rh = maxHeight(root->right); if(rh==-1) return -1; if(abs(lh-rh)>1) return -1; return 1 + max(lh,rh); } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |