Question d’entretien chez Splunk

BFS graph question and a greedy algorithm question.