We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
使用队列实现按层访问
使用变量currLevel表示当前层的节点数,使用变量nextLevel表示下一层的节点数