do we have to return the same bst the update function got as its arg, with the updated node? how do we do it without using mutation?
On Dec 9, 7:20 am, Jay McCarthy <j...@cs.byu.edu> wrote:
> You return a new tree that shares some of the old nodes. This is just like
> a mapping function or the "birth" function we wrote that one time (at band
> camp.)
>
> On Fri, Dec 9, 2011 at 6:58 AM, Timnah Katuka <timnah_kat...@yahoo.co.in>wrote:
>
> > do we have to return the same bst the update function got as its arg, with
> > the updated node? how do we do it without using mutation?
>
> --
> Jay McCarthy <j...@cs.byu.edu>
> Assistant Professor / Brigham Young Universityhttp://faculty.cs.byu.edu/~jay