LeetCode solution for BinaryLevelOrderTraversal

The fact you have to return a vector<vector<int>> means you have to remember the level cut-offs properly. You can do this with two queues as I've done, or you could do it with sentinel values in the queues.