Skip to content

Commit 3c1b10e

Browse files
Optimization
Signed-off-by: begeekmyfriend <[email protected]>
1 parent 7e726cc commit 3c1b10e

File tree

1 file changed

+0
-1
lines changed
  • 102_binary_tree_level_order_traversal

1 file changed

+0
-1
lines changed

102_binary_tree_level_order_traversal/bst_bfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ static int** levelOrder(struct TreeNode* root, int** columnSizes, int* returnSiz
167167
if (root->right != NULL) {
168168
new = node_new(&free_list, root->right);
169169
list_add_tail(&new->link, &bfs_queue0);
170-
(*columnSizes)[level]++;
171170
}
172171

173172
results[level] = malloc(sizeof(int));

0 commit comments

Comments
 (0)