>nway its not ma homework but a challenge i read from a ma data structures bk.
There's no difference. It's work given to you because you don't know how to do it already. It's not work given to us because we don't care about your book or your class or whatever, and we already know how to do it. The point is that if you don't do your own work, you won't learn squat.