educative.io

Sliding Window or divide and conquer?

Can anyone explain how this problem is tagged under divide and conquer?

Because this algorithm divides the array into a window and the window slides over that array, so in that way, it is dividing the array in multiple windows.