Pergunta de entrevista da empresa Quantium

Which algorithm would i use to solve a problem