Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion xml/chapter1/section2/subsection2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,11 @@ f_recursive(5);
</SPLITINLINE>
that computes elements of Pascal<APOS/>s triangle by means of a recursive
process.
<SOLUTION>
<SOLUTION>
Assuming that we count the rows of the triangle from the top starting
at 1 and the numbers in each row using indices from left to right
starting at 1, the following function computes the number in the
triangle in a given row at a given index.
<SNIPPET>
<NAME>pascal_triangle</NAME>
<EXAMPLE>example_1.13</EXAMPLE>
Expand Down
Loading