


from __future__ import annotations





def __UpperCAmelCase       (		__A ,						__A			)						->					list[int]:



       '''simple docstring'''





       UpperCAmelCase__										=     0
       UpperCAmelCase__										=     len(__A			) - 1

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

       return []


if __name__ == "__main__":
       import doctest

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









from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A      = {"configuration_mmbt": ["MMBTConfig"]}

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    A      = ["MMBTForClassification", "MMBTModel", "ModalEmbeddings"]


if TYPE_CHECKING:
    from .configuration_mmbt import MMBTConfig

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_mmbt import MMBTForClassification, MMBTModel, ModalEmbeddings

else:
    import sys

    A      = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





