Pergunta de entrevista da empresa Microsoft

DSA livecoding Design a tree and assign to each node, that doesn't have a sibling, a sibling(as additional field in the node). Bonus question was to make it thread safe.

Resposta da entrevista

Sigiloso

13 de jan. de 2025

Using the BFS, and checking left and right child