#NEWLINE# @ contract #NEWLINE# def update_request_windows( request_windows , previous_state , current_state ) : #NEWLINE# #INDENT# ' Update and return the updated request windows.\n\n    :param request_windows: The previous request windows.\n     :type request_windows: list(deque)\n\n    :param previous_state: The previous state.\n     :type previous_state: int,>=0\n\n    :param current_state: The current state.\n     :type current_state: int,>=0\n\n    :return: The updated request windows.\n     :rtype: list(deque)\n    ' #NEWLINE# request_windows [ previous_state ] . append ( current_state ) #NEWLINE# return request_windows