GfG QA is closing soon... Please refer PRACTICE or GfG now on wards !!

Transfer data structure from source machine to destination machine.

Description : There is Binary tree at source machine with 

  1. Struct Node {
  2. void* object;
  3. Node *leftChild;
  4. Node *rightChild;
  5. }

You need to transfer Binary tree from source machine to destination machine via network such that, at destination, you can retain / retrieve the Binary tree structure same as it was at the source machine.

  • void* object : is pointer to object that Node holds
  • leftChild, rightChild are the left and right child node pointer of the Node


asked Apr 23, 2016 by Rakesh Sharad Navale