Problem
Given theroot of a binary tree, return the postorder traversal of its nodes’ values.
Examples
Constraints
- The number of nodes in the tree is in the range [0, 100].
- -100 <= Node.val <= 100
Tested Python solution for LeetCode 145 with 15 pytest cases. Generate a practice environment with lcpy.
root of a binary tree, return the postorder traversal of its nodes’ values.