I only intend to print the root to leaf paths. The correct output should be:
721
725
It works fine when I use array instead of LinkedList.

cheers,
Mihir Kulkarni
Graduate Student
University of California, Irvine
http://goo.gl/CvRcG



On Sun, Jan 29, 2012 at 10:06 PM, Rujin Cao <[email protected]> wrote:

> Is the correct output   7 2 1 5 ?
>
> Did you intend to print the leaf node ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to