Skip to content

Commit 74ba991

Browse files
committed
add proper identation to code to issue #422
1 parent 96c8529 commit 74ba991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

segment_tree/segment_tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ int main()
7272
build(0, n - 1, tree, arr, 0); //to construct segment tree in O(n)
7373

7474
ll l = 1, r = 5;
75-
printf("the min value in the range 1 to 5 inclusive is:%ld\n", ans(l - 1, r - 1, 0, n - 1, tree, arr, 0));
75+
printf("the min value in the range 1 to 5 inclusive is:%lld\n", ans(l - 1, r - 1, 0, n - 1, tree, arr, 0));
7676

7777
ll ind = 3, value = -20;
7878
update(0, n - 1, tree, arr, 0, ind - 1, value); //to update the value at index ind in array,thereby updating whole tree
7979

80-
printf("the new min value in the range 1 to 5 inclusive is:%ld\n", ans(l - 1, r - 1, 0, n - 1, tree, arr, 0));
80+
printf("the new min value in the range 1 to 5 inclusive is:%lld\n", ans(l - 1, r - 1, 0, n - 1, tree, arr, 0));
8181
}
8282
}

0 commit comments

Comments
 (0)