Pergunta de entrevista da empresa Amazon

What is the time complexity for graphs?