

"""simple docstring"""





import sys



def 							_lowerCAmelCase   (    UpperCAmelCase  :				int   ,				UpperCAmelCase  :				list[int]					):


					'''simple docstring'''






					if not numbers:
										return 0
					if target == 0 and target in numbers:
										return 0
					if not isinstance(UpperCAmelCase   ,				(list, tuple)					) or not all(
					    isinstance(UpperCAmelCase   ,				UpperCAmelCase					) for number in numbers					):
										raise ValueError('''numbers must be an iterable of integers'''					)

					UpperCamelCase__		:     Any								=0
					UpperCamelCase__		:     str								=sys.maxsize

					while right < len(UpperCAmelCase					):
										curr_sum += numbers[right]
										while curr_sum >= target and left <= right:
															UpperCamelCase__		:     Tuple								=min(UpperCAmelCase   ,				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 							_lowerCAmelCase   (    UpperCAmelCase  :				list[int]   ,				UpperCAmelCase  :				int					):


					'''simple docstring'''






					UpperCamelCase__		:     dict[int, int]								={}
					for index, val in enumerate(UpperCAmelCase					):
										UpperCamelCase__		:     List[Any]								=target - val
										if compl in chk_map:
															return [chk_map[compl], index]
										UpperCamelCase__		:     Any								=index
					return []


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				print(F'''{two_sum([2, 7, 1_1, 1_5], 9) = }''')


