Skip to content

Commit ab68c65

Browse files
deji725adamant-pwn
authored andcommitted
Update catalan-numbers.md
I wasn't sure why this article said "C++ Implementation Show/Hide". This PR here that I've edited allows for collapsible code sections (which I assume was the intention). However,I've seen other articles that don't have collapsible code sections so I wasn't quite sure if this was wanted here or not. Please let me know!
1 parent aa6959b commit ab68c65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/combinatorics/catalan-numbers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ You can also think it in this manner. By definition, $C_n$ denotes number of cor
4747

4848
$( ) ( ( ) )$ can be divided into $( )$ and $( ( ) )$, but cannot be divided into $( ) ($ and $( ) )$. Again summing over all admissible $k's$, we get the recurrence relation on $C_n$.
4949

50-
#### C++ implementation <span class="toggle-code">Show/Hide</span>
50+
#### C++ implementation
51+
52+
<details>
53+
<summary>Click here to show/hide code</summary>
5154

5255
```cpp
5356
const int MOD = ....
@@ -66,6 +69,7 @@ void init() {
6669
}
6770
}
6871
```
72+
</details>
6973

7074
### Analytical formula
7175

0 commit comments

Comments
 (0)