Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a91046f

Browse files
reformat 279
1 parent b09a8ef commit a91046f

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+3
-3
lines changed

src/main/java/com/fishercoder/solutions/_279.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public int numSquaresDP(int n) {
2323
Arrays.fill(dp, Integer.MAX_VALUE);
2424
dp[0] = 0;
2525
dp[1] = 1;
26-
for(int i = 1; i <= n; i++) {
26+
for (int i = 1; i <= n; i++) {
2727
int min = Integer.MAX_VALUE;
2828
int j = 1;
29-
while(i -j*j >= 0) {
30-
min = Math.min(min, dp[i - j*j] + 1);
29+
while (i - j * j >= 0) {
30+
min = Math.min(min, dp[i - j * j] + 1);
3131
j++;
3232
}
3333
dp[i] = min;

0 commit comments

Comments
 (0)