Skip to content

Commit 5cc72eb

Browse files
committed
docs: update file level docs
1 parent 8c38c43 commit 5cc72eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dynamic_programming/catalan_numbers.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
/**
2-
* A Catalan number satisfies the following two properties:
3-
* C(0) = C(1) = 1; C(n) = sum(C(i).C(n-i-1)), from i = 0 to n-1
2+
* @file
3+
* @brief Provides utilities to compute Catalan numbers using dynamic
4+
programming.
5+
* A Catalan numbers satisfy these recurrence relations:
6+
* C(0) = C(1) = 1; C(n) = sum(C(i).C(n-i-1)), for i = 0 to n-1
47
* Read more about Catalan numbers here:
58
https://en.wikipedia.org/wiki/Catalan_number
9+
https://oeis.org/A000108/
610
*/
711

812
#include <cassert> /// for assert

0 commit comments

Comments
 (0)