Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct node{
- int key;
- node *left;
- node *right;
- }
- int zlicz_chuja(node *chuj){
- if(chuj == null) return 0;
- if(chuj -> key > 0)
- return chuj->left + chuj->right + 1;
- return chuj->left + huj -> right;
- }
- int main(){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement