

"""simple docstring"""




import sys
def   __SCREAMING_SNAKE_CASE		(		lowercase__     ,				lowercase__ ):
					"""simple docstring"""
					if not numbers:
										return 0
					if target == 0 and target in numbers:
										return 0
					if not isinstance(lowercase__     ,				(list, tuple) ) or not all(
					    isinstance(lowercase__     ,				lowercase__ ) for number in numbers ):
										raise ValueError("numbers must be an iterable of integers" )

					A     =   A     =   A     =   0
					A     =   sys.maxsize

					while right < len(lowercase__ ):
										curr_sum += numbers[right]
										while curr_sum >= target and left <= right:
															A     =   min(lowercase__     ,				right - left + 1 )
															curr_sum -= numbers[left]
															left += 1
										right += 1

					return 0 if min_len == sys.maxsize else min_len








"""simple docstring"""




from __future__ import annotations
def   __SCREAMING_SNAKE_CASE		(		lowercase__     ,				lowercase__ ):
					"""simple docstring"""
					A     =   {}
					for index, val in enumerate(lowercase__ ):
										A     =   target - val
										if compl in chk_map:
															return [chk_map[compl], index]
										A     =   index
					return []


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	print(f"""{two_sum([2, 7, 11, 15], 9) = }""")





