

'''simple docstring'''
from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

lowerCamelCase			:				Union[str, Any] 			=					typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
lowerCamelCase			:				Any 			=					typing.Union[np.floataa, int, float]  # noqa: UP007


def 	_lowerCAmelCase (						_UpperCamelCase						:					Vector							,			_UpperCamelCase						:					Vector    ):
     """simple docstring"""




     return np.sqrt(np.sum((np.asarray(_UpperCamelCase    ) - np.asarray(_UpperCamelCase    )) ** 2    )    )


def 	_lowerCAmelCase (						_UpperCamelCase						:					Vector							,			_UpperCamelCase						:					Vector    ):
     """simple docstring"""




     return sum((va - va) ** 2 for va, va in zip(_UpperCamelCase							,			_UpperCamelCase    )    ) ** (1 / 2)


if __name__ == "__main__":


     def 	_lowerCAmelCase (						):
          """simple docstring"""




          from timeit import timeit

          print('Without Numpy'    )
          print(
              timeit(
                  'euclidean_distance_no_np([1, 2, 3], [4, 5, 6])'							,			number=1_00_00							,			globals=globals()							,			)    )
          print('With Numpy'    )
          print(
              timeit(
                  'euclidean_distance([1, 2, 3], [4, 5, 6])'							,			number=1_00_00							,			globals=globals()							,			)    )







     benchmark()



'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					str    )				->      bool:
     """simple docstring"""




     _SCREAMING_SNAKE_CASE							   =0
     for ch in input_str:
          _SCREAMING_SNAKE_CASE							   =ord(_UpperCamelCase    )
          _SCREAMING_SNAKE_CASE							   =pow(2							,			_UpperCamelCase    )

          # If we already turned on bit for current character's unicode
          if bitmap >> ch_unicode & 1 == 1:
               return False
          bitmap |= ch_bit_index_on
     return True


if __name__ == "__main__":
     import doctest

     doctest.testmod()
