mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-21 02:53:15 +08:00
Refactor Code Style (#4151)
This commit is contained in:
@ -23,7 +23,7 @@ public class CatalanNumber {
|
||||
*/
|
||||
static long findNthCatalan(int n) {
|
||||
// Array to store the results of subproblems i.e Catalan numbers from [1...n-1]
|
||||
long catalanArray[] = new long[n + 1];
|
||||
long[] catalanArray = new long[n + 1];
|
||||
|
||||
// Initialising C₀ = 1 and C₁ = 1
|
||||
catalanArray[0] = 1;
|
||||
|
Reference in New Issue
Block a user