Given an array of size “N” , find the subarray whose sum is maximum but at the same time size of that subarray should at-least be “k” (Note - If the answer is negative - print “0”)
-> pmax[i] = maximum subarray sum ending at index “i” and the subarray which is considered should forcefully include the index “i”
-> pmax[i] = max(a[i],a[i]+pmax[i-1])
Intermediate Code Link - https://i...content-available-to-author-only...e.com/gI9yBO
-> kmax[i] = maximum subarray sum ending at index “i” such that size of that subarray>=k
Final Code Link - https://i...content-available-to-author-only...e.com/Lny2Xp