Question d’entretien chez Optiver

A harder leetcode style problem about graphs