...

/

Challenge: Free Tree

Challenge: Free Tree

Let’s empty a binary tree. We’ll also see how we can do it in one line.

We'll cover the following...

Problem

Given a binary tree, free all its nodes.

Input

A binary tree.

Output

An empty tree. ...