Skip to content

Commit 13fef34

Browse files
committed
Rename DRIFT_RANGE => MIN_DRIFT_RANGE
So that it's clearer that it's used as the minimum. As suggested by @lencioni in code review.
1 parent 7dd9a06 commit 13fef34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alignArrays.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const MOVEMENT = {
66
};
77

88
const PLACEHOLDER = '+';
9-
const DRIFT_RANGE = 200;
9+
const MIN_DRIFT_RANGE = 200;
1010

1111
/**
1212
* Creates a 2d matrix of a certain size.
@@ -39,7 +39,7 @@ function longestCommonSubsequence(a, b) {
3939
const solution = initMatrix(aLength + 1, bLength + 1);
4040

4141
const usedDriftRange = Math.abs(
42-
Math.max(Math.max(aLength, bLength) / 10, DRIFT_RANGE),
42+
Math.max(Math.max(aLength, bLength) / 10, MIN_DRIFT_RANGE),
4343
);
4444

4545
// Loop and find the solution

0 commit comments

Comments
 (0)