Skip to content

Commit

Permalink
docs: update file level docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Sep 27, 2024
1 parent 8c38c43 commit 5cc72eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dynamic_programming/catalan_numbers.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/**
* A Catalan number satisfies the following two properties:
* C(0) = C(1) = 1; C(n) = sum(C(i).C(n-i-1)), from i = 0 to n-1
* @file
* @brief Provides utilities to compute Catalan numbers using dynamic
programming.
* A Catalan numbers satisfy these recurrence relations:
* C(0) = C(1) = 1; C(n) = sum(C(i).C(n-i-1)), for i = 0 to n-1
* Read more about Catalan numbers here:
https://en.wikipedia.org/wiki/Catalan_number
https://oeis.org/A000108/
*/

#include <cassert> /// for assert
Expand Down

0 comments on commit 5cc72eb

Please sign in to comment.