Nearest Value Nearest Value
Elementary+
English RU

Find the nearest value to the given one.

You are given a list of values as Array form and a value for which you need to find the nearest one.

For example, we have the following set of numbers: 4, 7, 10, 11, 12, 17, and we need to find the nearest value to the number 9. If we sort this set in the ascending...

You should be an authorized user in order to see the full description and start solving this mission.