Pergunta de entrevista da empresa Man Group

what is your method time complexity and how do you improve it?