Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Nearest Value by thealfest1
def nearest_value(values: set, one: int) -> int:
return min(values, key = lambda x: (abs(one - x),x))
April 9, 2019
Comments: