Skip to content

Commit 0658e7b

Browse files
feat: add algorithm to check if a singly linked list is a palindrome
1 parent 1f0bfbb commit 0658e7b

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/main/java/com/thealgorithms/datastructures/lists/PalindromeSinglyLinkedList.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
*
1010
* See more:
1111
* https://www.geeksforgeeks.org/function-to-check-if-a-singly-linked-list-is-palindrome/
12+
*
13+
* @see com.thealgorithms.strings.Palindrome
14+
* @see com.thealgorithms.stacks.PalindromeWithStack
15+
* @see com.thealgorithms.bitmanipulation.BinaryPalindromeCheck
16+
* @see com.thealgorithms.maths.LowestBasePalindrome
17+
* @see com.thealgorithms.maths.PalindromePrime
18+
* @see com.thealgorithms.maths.PalindromeNumber
1219
*/
1320
@SuppressWarnings("rawtypes")
1421
public final class PalindromeSinglyLinkedList {

src/main/java/com/thealgorithms/maths/PalindromePrime.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6+
/**
7+
* A class to check and generate palindromic prime numbers.
8+
* A palindromic prime is a prime number that is also a palindromic number.
9+
*
10+
* @see com.thealgorithms.strings.Palindrome
11+
* @see com.thealgorithms.stacks.PalindromeWithStack
12+
* @see com.thealgorithms.bitmanipulation.BinaryPalindromeCheck
13+
* @see com.thealgorithms.maths.LowestBasePalindrome
14+
* @see com.thealgorithms.datastructures.lists.PalindromeSinglyLinkedList
15+
* @see com.thealgorithms.maths.PalindromeNumber
16+
*/
617
public final class PalindromePrime {
718
private PalindromePrime() {
819
}

0 commit comments

Comments
 (0)