Skip to content

Commit 32a0016

Browse files
fix build
1 parent ff19a6a commit 32a0016

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/_799.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
*/
3333
public class _799 {
3434
public static class Solution1 {
35-
public double champagneTower(int poured, int query_row, int query_glass) {
35+
public double champagneTower(int poured, int queryRow, int queryGlass) {
3636
double[][] dp = new double[101][101];
3737
dp[0][0] = poured;
38-
for (int row = 0; row <= query_row; row++) {
38+
for (int row = 0; row <= queryRow; row++) {
3939
for (int col = 0; col <= row; col++) {
4040
double quantity = (dp[row][col] - 1.0) / 2.0;
4141
if (quantity > 0) {
@@ -44,7 +44,7 @@ public double champagneTower(int poured, int query_row, int query_glass) {
4444
}
4545
}
4646
}
47-
return Math.min(dp[query_row][query_glass], 1.0);
47+
return Math.min(dp[queryRow][queryGlass], 1.0);
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy