Skip to content

Commit

Permalink
Change max initialization to Double.NEGATIVE_INFINITY
Browse files Browse the repository at this point in the history
  • Loading branch information
suchit07-git committed Jan 29, 2025
1 parent dfc4b62 commit 383f817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submissions/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Stats {

public Stats() {
this.min = Double.MAX_VALUE;
this.max = Double.MIN_VALUE;
this.max = Double.NEGATIVE_INFINITY;
this.sum = 0.0;
this.count = 0;
}
Expand Down

0 comments on commit 383f817

Please sign in to comment.