Pregunta de entrevista de Micromine

wrote the complexity of a algorithm