

"""simple docstring"""





from ..utils import DummyObject, requires_backends




class 					_lowerCAmelCase  (	metaclass=lowercase   ):







 """simple docstring"""







 __UpperCAmelCase	:					int   		=	["keras_nlp"]


 def __init__(			self							:			str,					*UpperCAmelCase__							:			Dict,					**UpperCAmelCase__							:			Union[str, Any]	):
    requires_backends(self,					["keras_nlp"]	)











"""simple docstring"""




from __future__ import annotations






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    list[int]    ,       _lowercase						:    int					) ->int:






	'''simple docstring'''






	if len(_lowercase					) < k or k < 0:
		raise ValueError("Invalid Input"					)
	a      :		Optional[Any]	=				sum(array[:k]					)
	for i in range(len(_lowercase					) - k					):
		a      :		Optional[Any]	=				current_sum - array[i] + array[i + k]
		a      :		Union[str, Any]	=				max(_lowercase    ,       _lowercase					)
	return max_sum


if __name__ == "__main__":
		from doctest import testmod
		from random import randint

		testmod()
		a						: Any     	=			[randint(-1000, 1000) for i in range(100)]
		a						: List[str]     	=			randint(0, 110)
		print(F'''The maximum sum of {k} consecutive elements is {max_sum_in_array(array,k)}''')


