Skip to content

Commit ab7e699

Browse files
committed
Formatted code using clang-format
1 parent 52b8f86 commit ab7e699

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/com/thealgorithms/strings/TwoPointerPalindrome.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* Check if a given string is a palindrome using the two-pointer technique.
33
* A palindrome is a string that reads the same forward and backward.
4-
*
4+
*
55
* Example: "level", "madam", "12321" are palindromes.
6-
*
6+
*
77
* Author: Sushma
88
*/
99

src/test/java/com/thealgorithms/strings/TwoPointerPalindromeTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.strings;
22

33
import static org.junit.jupiter.api.Assertions.*;
4+
45
import org.junit.jupiter.api.Test;
56

67
public class TwoPointerPalindromeTest {
@@ -12,7 +13,7 @@ void testPalindrome() {
1213
assertTrue(TwoPointerPalindrome.isPalindrome("a"));
1314

1415
assertTrue(TwoPointerPalindrome.isPalindrome(null));
15-
assertTrue(TwoPointerPalindrome.isPalindrome(""));
16+
assertTrue(TwoPointerPalindrome.isPalindrome(""));
1617

1718
assertFalse(TwoPointerPalindrome.isPalindrome("hello"));
1819
assertFalse(TwoPointerPalindrome.isPalindrome("world"));

0 commit comments

Comments
 (0)