in reply to compute paths in Pascal's triangle (aka Tartaglia's one)
Like 3-1 has 3 left 2 left (*) and 1 right move.
You could easily do a recursion which checks and decrements $l and $r.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
*) see Re: compute paths in Pascal's triangle (aka Tartaglia's one) (2 updates) for explanation
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compute paths in Pascal's triangle (aka Tartaglia's one)
by LanX (Saint) on Mar 22, 2018 at 10:43 UTC | |
by hdb (Monsignor) on Mar 22, 2018 at 11:48 UTC |