Question: Complete the function find in BTreeNode.cpp that accepts a BTreeNode * and an int val, and must return the BTreeNode * that contains the matching
Complete the function find in BTreeNode.cpp that accepts a BTreeNode * and an int val, and must return the BTreeNode * that contains the matching val, or NULL if val was not found. ## BTreeNode.h##
#ifndef BTREENODE_H #define BTREENODE_H
#include
struct BTreeNode { bool is_leaf_=true; std::vector
BTreeNode* find(BTreeNode* root, int key);
#endif
## BTreeNode.cpp ##
#include
BTreeNode* find(BTreeNode* root, int key) { // Code Here int i = 1; return NULL; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
