Pergunta de entrevista da empresa Google

How do you figure out time and space complexity of recursive function?