Question d’entretien chez Google

Compare two trees using a depth first search.