Algorithm · Tradedesk · Medium
Given a target distance and an activity record, find the minimum time in which that distance is completed during the activity. Each activity provides a chronologically ordered list of cumulative trackpoints. Input benchmark_distance: A positive integer specifying the target distance. activity: An object with a trackpoints array. Every trackpoint contains: time: An integer giving the total elapsed time since the activity began. distance: An integer or floating-point number…
Checking your access…