Refactor Code Style (#4151)

This commit is contained in:
Saurabh Rahate
2023-04-15 13:55:54 +05:30
committed by GitHub
parent 1ce907625b
commit 1dc388653a
100 changed files with 293 additions and 319 deletions

View File

@ -15,8 +15,8 @@ package com.thealgorithms.dynamicprogramming;
public class CountFriendsPairing {
public static boolean countFriendsPairing(int n, int a[]) {
int dp[] = new int[n + 1];
public static boolean countFriendsPairing(int n, int[] a) {
int[] dp = new int[n + 1];
// array of n+1 size is created
dp[0] = 1;
// since 1st index position value is fixed so it's marked as 1