Pergunta de entrevista da empresa Bloomberg

Number of Islands problem on LeetCode and some follow-ups