Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Binary Tree Postorder Traversal
Hard
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Given a binary tree, return the postorder traversal of its nodes' values.
Sample Input:
[1,null,2,3]
Sample Output:
[3,2,1]
Hints
Hint 1
Use iterative approach with stack
Hint 2
Track visited nodes to avoid reprocessing
Hint 3
Process left, right, then root
Code Editor
Reset
Run
Save
Loading...