currentSum — the sum of the current subarray
maxSum — the best (maximum) sum found so far
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
We’re here to make our tutorials better based on your thoughts and suggestions.