LinkedIn, Recently Asked Online Assessments in 11 Jan, 2026 | Equal Distance

Linkedin · Question · Posted Apr 2026

Equal Distance Problem Statement: A company tracks the distances traveled by n vehicles, represented by the array distance. Due to new operational goals, the company wants to standardize the travel distances to match a set of target values. In one operation, the distance of a vehicle can either be increased or decreased by 1 unit. Given $q$ target distance requests, represented by the array targetDistance. Implement a function that finds the minimum number of operations required to adjust all vehicle ...

The full answer & interview discussion are available to premium members.

Log in Create a free account