Tap here to switch tabs
Problem
Submissions

Problem: Binary Tree Postorder Traversal

med
30 min
Try to solve the Binary Tree Postorder Traversal problem.

Statement

Given the root node root of a binary tree, return the values of its nodes in postorder traversal order.

In postorder traversal, you visit the left subtree, then the right subtree, and finally the current node.

Note: A recursive approach is straightforward. Try to solve it using an iterative method.

Constraints:

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

  • −100≤-100 \leq Node.val ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Binary Tree Postorder Traversal

med
30 min
Try to solve the Binary Tree Postorder Traversal problem.

Statement

Given the root node root of a binary tree, return the values of its nodes in postorder traversal order.

In postorder traversal, you visit the left subtree, then the right subtree, and finally the current node.

Note: A recursive approach is straightforward. Try to solve it using an iterative method.

Constraints:

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

  • −100≤-100 \leq Node.val ≤100\leq 100