




class       a					:

     '''simple docstring'''





     def __init__(     self       :      List[str] ,   __snake_case       :      list[int]    ):
         UpperCAmelCase_										=					len(__snake_case    )
         UpperCAmelCase_										=					[0] * len_array

         if len_array > 0:
             UpperCAmelCase_										=					array[0]

         for i in range(1 ,   __snake_case    ):
             UpperCAmelCase_										=					self.prefix_sum[i - 1] + array[i]
     def   lowerCamelCase_       (     self       :      Union[str, Any] ,   __snake_case       :      int ,   __snake_case       :      int    ):
         if start == 0:
             return self.prefix_sum[end]

         return self.prefix_sum[end] - self.prefix_sum[start - 1]




     def   lowerCamelCase_       (     self       :      int ,   __snake_case       :      int    ):
         UpperCAmelCase_										=					{0}
         for sum_item in self.prefix_sum:
             if sum_item - target_sum in sums:
                 return True

             sums.add(__snake_case    )

         return False


if __name__ == "__main__":
 import doctest

 doctest.testmod()











import numpy as np




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						np.array				)  ->							np.array:
    return (2 / (1 + np.exp(-2 * vector				))) - 1


if __name__ == "__main__":
 import doctest

 doctest.testmod()





