
from __future__ import annotations


def 			UpperCamelCase					(    __lowerCamelCase     : list[int]				,					__lowerCamelCase     : int    ):
       snake_case       :   Any							=      0
       snake_case       :   List[Any]							=      len(__lowerCamelCase    ) - 1

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

       return []


if __name__ == "__main__":
   import doctest

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












"""simple docstring"""





from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Value
from .base import TaskTemplate

@dataclass(frozen=_UpperCAmelCase					)
class 		lowercase					(					_UpperCAmelCase					):
      _SCREAMING_SNAKE_CASE					=      field(default='language-modeling'     ,  metadata={'include_in_asdict_even_if_is_default': True}					)

      _SCREAMING_SNAKE_CASE					=      Features({'text': Value('string'					)}					)
      _SCREAMING_SNAKE_CASE					=      Features({}					)
      _SCREAMING_SNAKE_CASE					=      "text"





      @property
      def     _snake_case			(       self )		->     Dict[str, str]:
            return {self.text_column: "text"}






