from __future__ import annotations




def 	UpperCAmelCase   (						_lowerCamelCase ,    _lowerCamelCase    ):
			A							:					str              =						0
			A							:					int              =						len(UpperCAmelCase__    ) - 1

			while i < j:
						if nums[i] + nums[j] == target:
									return [i, j]
						elif nums[i] + nums[j] < target:
									A							:					Dict              =						i + 1
						else:
									A							:					Union[str, Any]              =						j - 1

			return []


if __name__ == "__main__":
							import doctest

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




import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
__SCREAMING_SNAKE_CASE           =  """."""


if __name__ == "__main__":
							__SCREAMING_SNAKE_CASE           =  os.path.join(REPO_PATH, """utils/documentation_tests.txt""")
							__SCREAMING_SNAKE_CASE           =  []
							__SCREAMING_SNAKE_CASE           =  []
							with open(doctest_file_path) as fp:
														for line in fp:
																					__SCREAMING_SNAKE_CASE           =  line.strip()
																					__SCREAMING_SNAKE_CASE           =  os.path.join(REPO_PATH, line)
																					if not (os.path.isfile(path) or os.path.isdir(path)):
																												non_existent_paths.append(line)
																					all_paths.append(path)
							if len(non_existent_paths) > 0:
														__SCREAMING_SNAKE_CASE           =  """\n""".join(non_existent_paths)
														raise ValueError(F"""`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}""")
							if all_paths != sorted(all_paths):
														raise ValueError("""Files in `utils/documentation_tests.txt` are not in alphabetical order.""")