Binary Tree, Data Structure Algorithm, Algorithms, Dotnet, Csharp.
standard level order traversal (using a BFS approach with a queue), but store the results in reverse order, either by collecting levels and then reversing at the end, or by pushing each level’s result to the front of a list (the latter is more efficient, avoiding a full reversal operation at the