Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Another one solution in Clear category for Nearest Value by obone
def nearest_value(values: set, one: int) -> int:
return min(sorted(list(values)), key = lambda x: abs(x - one))
Sept. 5, 2019