"""
Given a large array of integers and a window of size www, find the current maximum value in the window as the window slides through the entire array.
"""


def find_max_sliding_window(arr, window_size):
    result = []
    window_start = window_end = 0
    for window_end in range(len(arr)):
        if window_end >= window_size - 1:
            print(arr[window_start : window_end + 1])
            result.append(max(arr[window_start : window_end + 1]))
            window_start += 1
    return result
