I hereby claim:
- I am esslushy on github.
- I am claireschlesinge (https://keybase.io/claireschlesinge) on keybase.
- I have a public key ASAPYP1BuSGBde4vlV1xf15eeeXgFGvkIZi3Ygt2C_ZK9Qo
To claim this, I am signing this object:
from typing import List | |
def has_close_elements(numbers: List[float], threshold: float) -> bool: | |
""" Check if in given list of numbers, are any two numbers closer to each other than | |
given threshold. | |
>>> has_close_elements([1.0, 2.0, 3.0], 0.5) | |
False | |
>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3) | |
True | |
""" |
from typing import List | |
def has_close_elements(numbers: List[float], threshold: float) -> bool: | |
""" Check if in given list of numbers, are any two numbers closer to each other than | |
given threshold. | |
>>> has_close_elements([1.0, 2.0, 3.0], 0.5) | |
False | |
>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3) | |
True | |
""" |
I hereby claim:
To claim this, I am signing this object: