Pergunta de entrevista da empresa Databricks

E.g., compute the distance between vertical/horizontal lines on a grid