Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Fix MaxSubarrayTest#testMaximumSubarray (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
vspochernin committed Oct 18, 2022
1 parent c363b60 commit 92a1d8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void testMaximumSubarray() {
private static MaxSubarray.Res bruteForceSolution(int[] array) {
int left = 0;
int right = 0;
int maximumSum = 0;
int maximumSum = Integer.MIN_VALUE;
for (int i = 0; i < array.length; ++i) {
int sum = 0;
for (int j = i; j < array.length; ++j) {
Expand Down

0 comments on commit 92a1d8e

Please sign in to comment.