From c08c9b6fc7b784eae51b223cf4eafcdbe4ff6b94 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Thu, 12 Nov 2015 13:45:30 +0100 Subject: Some small corrections. --- datastructures/RMQ.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datastructures') diff --git a/datastructures/RMQ.cpp b/datastructures/RMQ.cpp index 899db15..9047b33 100644 --- a/datastructures/RMQ.cpp +++ b/datastructures/RMQ.cpp @@ -12,7 +12,7 @@ void initRMQ() { } } } -//returns index of minimum! [a, b) +//returns index of minimum! [l, r) int queryRMQ(int l, int r) { if(l >= r) return l; int s = floor(log2(r-l)); r = r - (1 << s); -- cgit v1.2.3