Arista | OA | 27th dec 2025 | Hackerland Server Network

Question · Posted Apr 2026

Question 1: Hackerland Server Network Problem Statement: The developers of Hackerland aim to build a server network across the country to enhance their applications. The country can be visualized as a large coordinate grid where n servers are installed at various coordinates, with the i-th server located at (x[i], y[i]). The cost to connect any two servers i and j is defined as |x[i] - x[j]| + |y[i] - y[j]|, where |a| is the absolute value of a. Given arrays ...

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

Log in Create a free account