I don't understand why if the input is [3,1,2], the output should be [1,2,3]. Shouldn't the output be [2,1,3]? There are no missing nodes (denoted by #), so how can this be?
1,2,3 is correct standard postorder:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.