mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-23 04:20:16 +08:00
Refactor Code Style (#4151)
This commit is contained in:
@ -10,7 +10,7 @@ package com.thealgorithms.dynamicprogramming;
|
||||
public class NewManShanksPrime {
|
||||
|
||||
public static boolean nthManShanksPrime(int n, int expected_answer) {
|
||||
int a[] = new int[n + 1];
|
||||
int[] a = new int[n + 1];
|
||||
// array of n+1 size is initialized
|
||||
a[0] = a[1] = 1;
|
||||
// The 0th and 1st index position values are fixed. They are initialized as 1
|
||||
|
Reference in New Issue
Block a user