Amazon interview question

Traverse an HTML DOM tree by level

Interview Answer

Anonymous

6 July 2019

It is a question about BFS. So using the BFS algorithm to output the result of traverse

7