Algorithm · Microsoft · Medium
Sprint Training Medium · Topics · Company Tags · Hints A track has n labeled points, numbered 1 through n. A training schedule is provided as an integer array sprints of length k. For each consecutive pair of entries, the athlete runs from the first point to the second point, touching every point along the inclusive interval between them. Runs are counted the same in either direction; for instance, going from 7 to 3 covers exactly 3, 4, 5, 6, 7. Determine how many times each…
Checking your access…