We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a1589 commit df6ca24Copy full SHA for df6ca24
xml/chapter1/section2/subsection2.xml
@@ -675,7 +675,11 @@ f_recursive(5);
675
</SPLITINLINE>
676
that computes elements of Pascal<APOS/>s triangle by means of a recursive
677
process.
678
- <SOLUTION>
+ <SOLUTION>
679
+ Assuming that we count the rows of the triangle from the top starting
680
+ at 1 and the numbers in each row using indices from left to right
681
+ starting at 1, the following function computes the number in the
682
+ triangle in a given row at a given index.
683
<SNIPPET>
684
<NAME>pascal_triangle</NAME>
685
<EXAMPLE>example_1.13</EXAMPLE>
0 commit comments