Frage im Vorstellungsgespräch bei Bloomberg

Leetcode Medium graph question + follow ups (time complexity)