Kadane's algo doubt

if i want to find the sub array which give max sum how i can do this using kadane’s algo

@naaz one of the way is when you get maximum sum keep updating the index value. so at last you got the subarray ending position in index. now you have the sum, position of last element so you can easily calculate start position.
i hope its clear if yes dont forget to hit like and mark resolved :smiley: