Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Nearest Value by larrycarameloso8
def nearest_value(values: set, one: int) -> int:
#esta fumcion calcula el numero mas cercano a un numero dado en una lista de nuemros
E = values
A = list(E)
num = one
i = 0
posicion = []
A.append(num)#se agrega el elemento a la lista
l = len(A)
A.sort()#se organiza el elmento de forma ascendente
#se busca la posicion del elemento en la nueva lista
while i
June 8, 2020
Comments: