8000 fix(segment tree): Fix the way of getting the tree's size · HuboArch/algorithms-in-java@19fe3a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19fe3a1

Browse files
author
agribeau
committed
fix(segment tree): Fix the way of getting the tree's size
1 parent d2dc599 commit 19fe3a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_structure/tree/segment_tree/SegmentTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ private void rangeCheck(int index) {
3636
}
3737

3838
private String outOfBoundsMsg(int index) {
39-
return "Index: " + index + ", Size: " + size;
39+
return "Index: " + index + ", Size: " + size();
4040
}
4141
}

0 commit comments

Comments
 (0)
0