8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4665ffa commit 3a37876Copy full SHA for 3a37876
src/main/java/com/fishercoder/solutions/firstthousand/_145.java
@@ -72,8 +72,7 @@ public static class Solution3 {
72
* recursive solution is trivial.
73
*/
74
public List<Integer> postorderTraversal(TreeNode root) {
75
- List<Integer> result = new ArrayList();
76
- return post(root, result);
+ return post(root, new ArrayList());
77
}
78
79
List<Integer> post(TreeNode root, List<Integer> result) {
0 commit comments