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 b46bf0d commit 38eadd9Copy full SHA for 38eadd9
src/test/java/com/thealgorithms/dynamicprogramming/CatalanNumberTest.java
@@ -0,0 +1,14 @@
1
+package com.thealgorithms.dynamicprogramming;
2
+
3
+import static org.junit.jupiter.api.Assertions.*;
4
5
+import org.junit.jupiter.api.Test;
6
7
+public class CatalanNumberTest {
8
9
+ @Test
10
+ public void testCatalanNumber() {
11
+ assertEquals(42, CatalanNumber.findNthCatalan(5));
12
+ assertEquals(16796, CatalanNumber.findNthCatalan(10));
13
+ }
14
+}
0 commit comments