Pergunta de entrevista da empresa Meta

Some basic BFS, DFS and Two pointer problem