File tree Expand file tree Collapse file tree
main/java/com/thealgorithms
test/java/com/thealgorithms Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 * </p>
1010 *
1111 * @author Hardvan
12+ * @see com.thealgorithms.strings.Palindrome
13+ * @see com.thealgorithms.stacks.PalindromeWithStack
14+ * @see com.thealgorithms.maths.LowestBasePalindrome
15+ * @see com.thealgorithms.datastructures.lists.PalindromeSinglyLinkedList
16+ * @see com.thealgorithms.maths.PalindromePrime
17+ * @see com.thealgorithms.maths.PalindromeNumber
1218 */
1319public final class BinaryPalindromeCheck {
1420 private BinaryPalindromeCheck () {
Original file line number Diff line number Diff line change 1- package com .thealgorithms .misc ;
1+ package com .thealgorithms .datastructures . lists ;
22
33import java .util .Stack ;
44
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" )
1421public final class PalindromeSinglyLinkedList {
Original file line number Diff line number Diff line change 1- package com .thealgorithms .others ;
1+ package com .thealgorithms .maths ;
22
33import java .util .ArrayList ;
44import java .util .List ;
2323 *
2424 * @see <a href="https://oeis.org/A016026">OEIS A016026 - Smallest base in which
2525 * n is palindromic</a>
26+ * @see com.thealgorithms.strings.Palindrome
27+ * @see com.thealgorithms.stacks.PalindromeWithStack
28+ * @see com.thealgorithms.bitmanipulation.BinaryPalindromeCheck
29+ * @see com.thealgorithms.datastructures.lists.PalindromeSinglyLinkedList
30+ * @see com.thealgorithms.maths.PalindromePrime
31+ * @see com.thealgorithms.maths.PalindromeNumber
2632 * @author TheAlgorithms Contributors
2733 */
2834public final class LowestBasePalindrome {
Original file line number Diff line number Diff line change 11package com .thealgorithms .maths ;
22
3+ /**
4+ * A class to check if a given number is a palindrome.
5+ * A palindromic number is a number that remains the same when its digits are reversed.
6+ *
7+ * @see com.thealgorithms.strings.Palindrome
8+ * @see com.thealgorithms.stacks.PalindromeWithStack
9+ * @see com.thealgorithms.bitmanipulation.BinaryPalindromeCheck
10+ * @see com.thealgorithms.maths.LowestBasePalindrome
11+ * @see com.thealgorithms.datastructures.lists.PalindromeSinglyLinkedList
12+ * @see com.thealgorithms.maths.PalindromePrime
13+ */
314public final class PalindromeNumber {
415 private PalindromeNumber () {
516 }
Original file line number Diff line number Diff line change 1- package com .thealgorithms .misc ;
1+ package com .thealgorithms .maths ;
22
33import java .util .ArrayList ;
44import 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+ */
617public final class PalindromePrime {
718 private PalindromePrime () {
819 }
Original file line number Diff line number Diff line change 88 * which we will pop one-by-one to create the string in reverse.
99 *
1010 * Reference: https://www.geeksforgeeks.org/check-whether-the-given-string-is-palindrome-using-stack/
11+ *
12+ * @see com.thealgorithms.strings.Palindrome
13+ * @see com.thealgorithms.bitmanipulation.BinaryPalindromeCheck
14+ * @see com.thealgorithms.maths.LowestBasePalindrome
15+ * @see com.thealgorithms.datastructures.lists.PalindromeSinglyLinkedList
16+ * @see com.thealgorithms.maths.PalindromePrime
17+ * @see com.thealgorithms.maths.PalindromeNumber
1118 */
1219public class PalindromeWithStack {
1320 private LinkedList <Character > stack ;
Original file line number Diff line number Diff line change 22
33/**
44 * Wikipedia: https://en.wikipedia.org/wiki/Palindrome
5+ *
6+ * @see com.thealgorithms.stacks.PalindromeWithStack
7+ * @see com.thealgorithms.bitmanipulation.BinaryPalindromeCheck
8+ * @see com.thealgorithms.maths.LowestBasePalindrome
9+ * @see com.thealgorithms.datastructures.lists.PalindromeSinglyLinkedList
10+ * @see com.thealgorithms.maths.PalindromePrime
11+ * @see com.thealgorithms.maths.PalindromeNumber
512 */
613final class Palindrome {
714 private Palindrome () {
Original file line number Diff line number Diff line change 1- package com .thealgorithms .misc ;
1+ package com .thealgorithms .datastructures . lists ;
22
33import static org .junit .jupiter .api .Assertions .assertFalse ;
44import static org .junit .jupiter .api .Assertions .assertTrue ;
55
6- import com .thealgorithms .datastructures .lists .SinglyLinkedList ;
76import org .junit .jupiter .api .Test ;
87
98public class PalindromeSinglyLinkedListTest {
Original file line number Diff line number Diff line change 1- package com .thealgorithms .others ;
1+ package com .thealgorithms .maths ;
22
33import java .util .ArrayList ;
44import java .util .Arrays ;
Original file line number Diff line number Diff line change 1- package com .thealgorithms .misc ;
1+ package com .thealgorithms .maths ;
22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
44import static org .junit .jupiter .api .Assertions .assertFalse ;
You can’t perform that action at this time.
0 commit comments