We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25840eb commit f6b8584Copy full SHA for f6b8584
javascript/0145-binary-tree-postorder-traversal.js
@@ -16,7 +16,7 @@
16
var postorderTraversal = function(root) {
17
18
const dfs = (node, pot) => {
19
- if(!node) return pot;
+ if (!node) return pot;
20
dfs(node.left, pot);
21
dfs(node.right, pot);
22
pot.push(node.val);
0 commit comments