Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
checkstyle: fix formatting
  • Loading branch information
alxkm committed Aug 29, 2024
commit d21ac232a3667af937911bda5877c24da70cbc5d
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static long maximumSubarraySum(int k, int... nums) {
}
long masSum = 0; // Variable to store the maximum sum of distinct subarrays
long currentSum = 0; // Variable to store the sum of the current subarray
Set<Integer> currentSet = new HashSet<>();// Set to track distinct elements in the current subarray
Set<Integer> currentSet = new HashSet<>(); // Set to track distinct elements in the current subarray

// Initialize the first window
for (int i = 0; i < k; i++) {
Expand Down