Function that returns the height (in nodes) of a BST: int get_height(bst_node* node) — int get_height(bst_node* node) { if (node == NULL) { return 0; } return 1 + max_num(get_height(node->left), get_height(node->right)); }
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university