Skip to content

Commit 059d7e5

Browse files
committed
Fix formatting issues in LongestIncreasingSubsequenceNLogN class and its test class
1 parent 9f0f22f commit 059d7e5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/thealgorithms/dynamicprogramming/LongestIncreasingSubsequenceNLogN.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ private LongestIncreasingSubsequenceNLogN() {
2121
* @return The index of the lower bound.
2222
*/
2323
private static int lowerBound(int[] arr, int target, int size) {
24-
int l = 0, r = size;
24+
int l = 0;
25+
int r = size;
2526

2627
while (l < r) {
2728
int mid = l + (r - l) / 2;

src/test/java/com/thealgorithms/dynamicprogramming/LongestIncreasingSubsequenceNLogNTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ private static Stream<Arguments> provideTestCases() {
1919
public void testLengthOfLIS(int[] input, int expected) {
2020
assertEquals(expected, LongestIncreasingSubsequenceNLogN.lengthOfLIS(input));
2121
}
22-
}
22+
}

0 commit comments

Comments
 (0)