Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: update
  • Loading branch information
yanglbme committed Jul 24, 2024
commit 72e41e9f723d34d69adfa1af399f58fc80e6092d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public List<Integer> boundaryOfBinaryTree(TreeNode root) {
dfs(left, root.left, 0);
dfs(leaves, root, 1);
dfs(right, root.right, 2);

ans.addAll(left);
ans.addAll(leaves);
Collections.reverse(right);
Expand Down