Do you know where your variables are? | |
PerlMonks |
Re: compute paths in Pascal's triangle (aka Tartaglia's one)by LanX (Saint) |
on Mar 22, 2018 at 09:39 UTC ( [id://1211498]=note: print w/replies, xml ) | Need Help?? |
All paths have the same number of left right moves which is determined by the end point.
Like 3-1 has You could easily do a recursion which checks and decrements $l and $r.
Cheers Rolf
*) see Re: compute paths in Pascal's triangle (aka Tartaglia's one) (2 updates) for explanation
In Section
Seekers of Perl Wisdom
|
|