Limitations for solutions?

In our solutions, are we allowed to make changes to the data structure given in the code, or alternatively, define our own data structure? For example, in this problem, could I add an instance variable to the TreeNode class? (I was thinking of using it to dynamically track sums of trees)

Comments (2)