Skip to content

Commit 620f4aa

Browse files
author
alxkm
committed
checkstyle: fix formatting
1 parent d2de400 commit 620f4aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/thealgorithms/others/TwoPointers.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.thealgorithms.others;
22

3-
import java.util.Arrays;
4-
53
/**
64
* The two-pointer technique is a useful tool to utilize when searching for
75
* pairs in a sorted array.
@@ -22,8 +20,8 @@ private TwoPointers() {
2220
* @return {@code true} if there exists a pair of elements, {@code false} otherwise.
2321
*/
2422
public static boolean isPairedSum(int[] arr, int key) {
25-
int i = 0; // index of the first element
26-
int j = arr.length - 1; // index of the last element
23+
int i = 0; // index of the first element
24+
int j = arr.length - 1; // index of the last element
2725

2826
while (i < j) {
2927
int sum = arr[i] + arr[j];

0 commit comments

Comments
 (0)