Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct node{
  5. int key;
  6. node *left;
  7. node *right;
  8. }
  9.  
  10. int zlicz_chuja(node *chuj){
  11. if(chuj == null) return 0;
  12. if(chuj -> key > 0)
  13. return chuj->left + chuj->right + 1;
  14. return chuj->left + huj -> right;
  15.  
  16. }
  17.  
  18. int main(){
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement