// Releases all memory resources (including data copies).
voidclearTree(TreeNode*root)
{
if(root==NULL){
if(root!=NULL){
clearTree(root->left);
clearTree(root->right);
free(root->data);
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.