Pergunta de entrevista da empresa Salesforce

I explained it above. One leetcode easy and one leetcode tree medium (variant of left nodes of binary tree) something along those lines. Hint: use bfs

Resposta da entrevista

Sigiloso

7 de set. de 2024

used bfs for the second question and for the first question its literally scanning through an array and using the helper function given to you. Use a simple for loop