



'''simple docstring'''




def  __lowerCamelCase    (   _lowercase						) ->     int:
							UpperCAmelCase	:						Tuple					=						str(_lowercase						).strip()
							if not oct_string:
														raise ValueError("""Empty string was passed to the function"""						)
							UpperCAmelCase	:						List[Any]					=						oct_string[0] == """-"""
							if is_negative:
														UpperCAmelCase	:						int					=						oct_string[1:]
							if not oct_string.isdigit() or not all(0 <= int(_lowercase						) <= 7 for char in oct_string						):
														raise ValueError("""Non-octal value was passed to the function"""						)
							UpperCAmelCase	:						Any					=						0
							for char in oct_string:
														UpperCAmelCase	:						Any					=						8 * decimal_number + int(_lowercase						)
							if is_negative:
														UpperCAmelCase	:						Tuple					=						-decimal_number
							return decimal_number


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

							testmod()






'''simple docstring'''




import sys



def  __lowerCamelCase    (   _lowercase      ,							_lowercase						) ->     int:
							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"""						)

							UpperCAmelCase	:						Optional[Any]					=						0
							UpperCAmelCase	:						List[str]					=						sys.maxsize

							while right < len(_lowercase						):
														curr_sum += numbers[right]
														while curr_sum >= target and left <= right:
																					UpperCAmelCase	:						Optional[Any]					=						min(_lowercase      ,							right - left + 1						)
																					curr_sum -= numbers[left]
																					left += 1
														right += 1

							return 0 if min_len == sys.maxsize else min_len

