Microsoft Interview Question

9. Serialize a BST and search for a key from the file Performance : average log(n) Node structure struct Node { Node *left; Node *right; int key; char* string; } In file u can use below functions seek(number of bytes) -> moves to n bytes from current location read() -> reads one byte