Amazon interview question

Bfs/dfs related question from Leetcode with some modification

Interview Answer

Anonymous

26 Oct 2022

Solved and answered with the time complexity mentioned.