145. Binary Tree Postorder Traversal

Description

Given the root of a binary tree, return the postorder traversal of its nodes' values.

Constraints

  • The number of the nodes in the tree is in the range [0, 100].

  • -100 <= Node.val <= 100

Approach

Examples

Input: root = [1, null, 2, 3]

Output: [3, 2, 1]

Solutions

Follow up

Last updated