A subarray is good when its first and last values differ by exactly k. Return the endpoints of a good subarray with the largest sum.
A subarray is good when its first and last values differ by exactly k. Return the endpoints of a good subarray with the largest sum.
The discussion opens with the full question.