Algorithm · Amazon · Medium
Requirements You receive a desired release date together with a collection of release dates that can be selected. Choose the available date with the smallest calendar-gap from the desired date. Decide the behavior for an equal-distance tie before writing code: prefer the earlier date, prefer the later date, or allow either result. Examples The selected date is 17 calendar days before the target, whereas the other nearby option is 19 days afterward. Notes This task is framed…
Checking your access…