Add TwoPointerPalindrome.java with tAdd TwoPointerPalindrome.java using two-pointer techniqueest cases and comments#6294
Closed
sushma0515 wants to merge 2 commits into
Closed
Conversation
sushma0515
requested review from
BamaCharanChhandogi,
DenizAltunkapan,
alxkm,
siriak,
vil02 and
yanglbme
as code owners
June 16, 2025 04:39
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6294 +/- ##
=========================================
Coverage 74.10% 74.10%
+ Complexity 5345 5339 -6
=========================================
Files 677 677
Lines 18639 18638 -1
Branches 3618 3617 -1
=========================================
Hits 13812 13812
Misses 4272 4272
+ Partials 555 554 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
What is the reason for the change? There were already 3 versions of this algorithm implemented including two pointer version |
Author
|
Thank you for your feedback! 😊
I added this version to practice the two-pointer approach in a
beginner-friendly way, with clear comments and test cases.
If it's too similar to the existing one, I’m happy to modify or enhance it
further based on your suggestions.
…On Mon, 16 Jun, 2025, 12:16 Andrii Siriak, ***@***.***> wrote:
*siriak* left a comment (TheAlgorithms/Java#6294)
<#6294 (comment)>
What is the reason for the change? There were already 3 versions of this
algorithm implemented including two pointer version
—
Reply to this email directly, view it on GitHub
<#6294 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5CXWY6LAVALDCUDQQOO7S33DZR6DAVCNFSM6AAAAAB7MGAPXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZVGI4TQMZUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Member
|
We don't need to add it because the same algorithm is already implemented |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
clang-format -i --style=file path/to/your/file.java✨ Description:
TwoPointerPalindrome.javato check for palindrome using two-pointer technique.TwoPointerPalindromeTest.java.🔗 Algorithm reference: https://en.wikipedia.org/wiki/Palindrome