The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Oikjuuhgfdxsz
By Guest on 21st September 2024 03:24:38 AM | Syntax: TEXT | Views: 2



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. #include <iostream>
  2.  
  3. struct Node {
  4.     int data;
  5.     Node* left;
  6.     Node* right;
  7.     Node(int val)
  8.     {
  9.         data = val;
  10.         left = right = NULL;
  11.     }
  12. };
  13. int main() {
  14.     Node* root = new Node(1);
  15.     root->left = new Node(2);
  16.     root->right = new Node(3);
  17.     root->left->right = new Node(5);
  18. }



  • Recent Pastes

Upload your own Photos at PasteNet Photos


Free Packet LLC
For all your hosting needs!