Amazon interview question

Traverse an HTML DOM tree by level

Interview Answer

Anonymous

Jul 6, 2019

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

7