Pregunta de entrevista de Huawei Technologies

Leetcode question plus some ML basic