Question d’entretien chez Bloomberg

Leetcode Medium graph question + follow ups (time complexity)