i can’t figure out how to approach to this problem.
Approach to the problem
can you please elaborate?
@tusharbhardwaj127 Increase right of the subarray until the number of changes are k. As soon as you see that no of changes has increases the value of k, start increasing l until the changes are less than or equal to k.