summaryrefslogtreecommitdiff
path: root/datastructures
diff options
context:
space:
mode:
Diffstat (limited to 'datastructures')
-rw-r--r--datastructures/segmentTree.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/datastructures/segmentTree.cpp b/datastructures/segmentTree.cpp
index c810af7..3905151 100644
--- a/datastructures/segmentTree.cpp
+++ b/datastructures/segmentTree.cpp
@@ -2,8 +2,6 @@
// Berechnet das Maximum im Array.
int a[MAX_N], m[4 * MAX_N];
-int gcd(int a, int b) { return b == 0 ? a : gcd (b, a % b); }
-
int query(int x, int y, int k = 0, int X = 0, int Y = MAX_N - 1) {
if (x <= X && Y <= y) return m[k];
if (y < X || Y < x) return -INF; // Ein "neutrales" Element.