Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Added isPalindrome.java file | Fixes issue #364 #365

Closed
wants to merge 4 commits into from

Conversation

kjl98
Copy link

@kjl98 kjl98 commented Oct 13, 2024

Hacktoberfest! 🎊🎈

πŸŽ‰ Have you read the Contributing Guidelines? πŸ€”

(Yes)

πŸ“ Description

I've succesfully added isPalindrome problem in java language.

Fixes #364 πŸ”§

βœ… Checklist

  • I've read the contribution guidelines. πŸ“š
  • I've checked the issue list before deciding what to submit. πŸ”
  • I've edited the README.md and linked to my code. πŸ“„

πŸ”— Related Issues or Pull Requests

The isPalindrome problem in Data Structures and Algorithms (DSA) involves determining if a given string or number reads the same backward as forward. This problem is fundamental in understanding string manipulation and algorithmic logic.

Key Points:

Definition: A palindrome is a sequence that reads the same backward as forward, such as "madam" or "121".

Approach:

1). String Comparison: Compare characters from the beginning and end of the sequence, moving toward the center.

2). Two-Pointer Technique: Utilize two pointers, one starting from the beginning and the other from the end, to check equality.

3). Efficiency: The algorithm typically runs in O(n) time complexity, where n is the length of the sequence, because each character is checked at most once.

Copy link

@kjl98

Welcome to the Project!

Thank you for opening a Pull Request πŸ™Œ! We’re thrilled to have you join us for Hacktoberfest πŸ’–. We’ll review your submission and get back to you shortly.

In the meantime, please remember to give this repo a star! ⭐ We appreciate your contribution!

@kjl98 kjl98 changed the title Added isPalindrome.java file Added isPalindrome.java file | Fixes issue #364 Oct 13, 2024
@kjl98
Copy link
Author

kjl98 commented Oct 15, 2024

Hello [@Kushal997-das] , is there any mistake in my change?

@NimraAslamkhan
Copy link

Hi there!
I am the Mentor of this project.
Although this repo is not part of Hacktoberfest 2024, we have some great alternatives for you. Welcome to SkillShow, a repository focused on skill enhancement!

Guidelines:

  • Please adhere to the existing guidelines.
  • No additional rules, thanks!
  • Check it out here: SkillShow.

Note: Start by creating an issue. Once it’s assigned to you, feel free to open a pull request (PR). Directly opening a PR will lead to an invalid label.

Looking forward to your contributions!

@Kushal997-das Kushal997-das added Hacktoberfest-2024 This PR is submitted for Hacktoberfest 2024. SkillShow Welcome to SkillShow! Contribute by creating an issue before opening a pull request! labels Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Hacktoberfest-2024 This PR is submitted for Hacktoberfest 2024. SkillShow Welcome to SkillShow! Contribute by creating an issue before opening a pull request!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Palindrome problem in more programming languages
3 participants