


"""simple docstring"""







from __future__ import annotations


def      lowercase			(				A_  ,   A_       )->      list[int]:
  '''simple docstring'''







  a						:		Tuple      							=			0
  a						:		Any      							=			len(A_       ) - 1

  while i < j:
    if nums[i] + nums[j] == target:
      return [i, j]
    elif nums[i] + nums[j] < target:
      a						:		Tuple      							=			i + 1
    else:
      a						:		Dict      							=			j - 1

  return []


if __name__ == "__main__":
 import doctest

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










"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     list			) ->      bool:
		if not isinstance(lowerCAmelCase__    ,					lowerCAmelCase__			):
				raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''			)
		if len(lowerCAmelCase__			) == 0:
				raise ValueError('''Input list must be a non empty list'''			)
		if len(lowerCAmelCase__			) == 1:
				return True
		__a           =			series[1] - series[0]
		for index in range(len(lowerCAmelCase__			) - 1			):
				if series[index + 1] - series[index] != common_diff:
						return False
		return True

def        lowercase							(		lowerCAmelCase__ :     list			) ->      float:
		if not isinstance(lowerCAmelCase__    ,					lowerCAmelCase__			):
				raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''			)
		if len(lowerCAmelCase__			) == 0:
				raise ValueError('''Input list must be a non empty list'''			)
		__a           =			0
		for val in series:
				answer += val
		return answer / len(lowerCAmelCase__			)


if __name__ == "__main__":
				import doctest

				doctest.testmod()






