Min Li's Note
KVM,QEMU, X86 virtualization
Pages
Home
Collection
About
Saturday, September 27, 2014
Binary Tree Level Order Traversal
Problem
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
Idea
BFS can solve this problem.
Note
C++ queue
Solution
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment