Pergunta de entrevista da empresa iRobot

Time complexity and space complexity