Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
indy256 committed Nov 21, 2014
1 parent b839150 commit 1ab828e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/src/HeavyLight.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ static int queryOperation(int leftValue, int rightValue) {
}

static int deltaEffectOnSegment(int delta, int segmentLength) {
if (delta == getNeutralDelta()) return getNeutralDelta();
// Here you must write a fast equivalent of following slow code:
// int result = delta;
// for (int i = 1; i < segmentLength; i++) result = queryOperation(result, delta);
Expand Down

0 comments on commit 1ab828e

Please sign in to comment.