Skip to content

Add new algorithm example: Palindrome Checker #1347

Description

@Gokul45-45

Description:

The FunnyAlgorithms repository is a collection of simple and fun algorithm implementations in various programming languages.
To expand its usefulness and variety, we can add a new algorithm that checks whether a given string or number is a palindrome.

Proposed Solution

Create a new file named palindrome_checker. (e.g., palindrome_checker.py, palindrome_checker.js, or palindrome_checker.cpp).

Implement a simple function that:

Takes an input string or number.

Checks if it reads the same forward and backward.

Prints or returns a message like "Palindrome" or "Not a palindrome".

Add a short example or usage demonstration at the end of the file.

Update the README (if applicable) to list the new algorithm.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions