Snowflake | Grid Distances & Tree Queries | Mar 12th Campus Assessment | Logistics Manhattan Distance | Water Pipeline Trees
Question · Posted Mar 2026
Question 1: Logistics Company Distribution Centers Problem Statement: A logistics company has a network of distribution centers arranged in a grid with n rows and m columns. Each cell in this grid contains a distribution center identified by its center ID, represented as an integer from 1 to 100,000. The company wants to analyze the travel cost between distribution centers of the same ID. The travel cost between two centers located at (r1, c1) and (r2, c2) is defined by ...
The full answer & interview discussion are available to premium members.
Log in Create a free account