Ch.5 · Level 04

层序遍历

层序遍历:队列辅助,逐层从左到右访问。

arrow_back 返回关卡库

层序遍历

使用队列实现,按层输出 8,4,12,2,6,10,14。

⌘ + Enter to run
guest@aq-shell:~ (bash)
terminal
0 / 0