Question d’entretien chez Goldman Sachs

a question on dynamic programming and other on hashmap.