Frage im Vorstellungsgespräch bei AKUNA CAPITAL

The problem was about Breadth First Search algorithm.