Pregunta de entrevista de Databricks

Get an array in place from binary tree