Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Binary Tree Level Order Traversal (Medium 102)

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).

Solution:

Click here Have two queues. Fill other queue with children of nodes until first queue is empty. Then switch. Each time you take item from queue, add to result.



Installation

Run make to run python and Swift files.