diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2017-10-22 12:36:19 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2017-10-22 12:36:19 +0200 |
| commit | 04c1803659a1985e55051b7a37a8d21c28b5466b (patch) | |
| tree | 549000c641264202f8a7b945c25a510af442ce73 | |
| parent | fbc9d4d19a8c197fe7d2541ae70d76cbc14879d2 (diff) | |
Removing stupid line from segment tree code.
| -rw-r--r-- | datastructures/segmentTree.cpp | 2 | ||||
| -rw-r--r-- | tcr.pdf | bin | 316161 -> 315950 bytes |
2 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. Binary files differ |
