Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Challenge: Perl 5: lazy sameFringe()?by LanX (Saint) |
on Jun 30, 2013 at 11:49 UTC ( [id://1041576]=note: print w/replies, xml ) | Need Help?? |
I like the idea of just storing the next element but IMHO your algorithm can't handle sub-arrays of size >2 and the iterator stops.
updateoops!!! I just realized that the task is restricted to binary trees! =) (how boring ;) Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|