SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Longest Palindromic Substring #418

Closed aarzoopundir closed 2 years ago

aarzoopundir commented 2 years ago

Enter your question -

Given a string s, return the longest palindromic substring in s. Input: s = "babad" Output: "bab"

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/longest-palindromic-substring/

Tags for the question(eg - Array, Basic, Stack, etc.) -

String

aarzoopundir commented 2 years ago

@SarthakKeshari pls assign this issue to me.

SarthakKeshari commented 2 years ago

@aarzoopundir, Kindly mention the "link(url)" for the online platform from where this question has been taken

aarzoopundir commented 2 years ago

done

SarthakKeshari commented 2 years ago

@aarzoopundir, Kindly add your solution to "leetcode" folder. Deadline - 13/10/2021

ravi0213 commented 2 years ago

@SarthakKeshari We already have this problem https://github.com/SarthakKeshari/Java-Questions-and-Solutions/blob/master/LeetCode/LongestPalindromicSubstring.java

SarthakKeshari commented 2 years ago

@aarzoopundir, Kindly look into it, as @ravi0213 has stated the solution already exists. So, this issue and PR needs to be closed. Kindly go through the repo everytime you come up with an issue. It will be helpful while creating an issue.

aarzoopundir commented 2 years ago

The other solution was using dynamic programming and this solution is better than dynamic programming

On Thu, 14 Oct 2021, 9:41 am SarthakKeshari, @.***> wrote:

@aarzoopundir https://github.com/aarzoopundir, Kindly look into it, as @ravi0213 https://github.com/ravi0213 has stated the solution already exists. So, this issue and PR needs to be closed. Kindly go through the repo everytime you come up with an issue. It will be helpful while creating an issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/issues/418#issuecomment-942929197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJOJDHVFEHXQ2RFKRACBZLUGZJ6LANCNFSM5F4JBLDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SarthakKeshari commented 2 years ago

@aarzoopundir, Program updation and multiple responses will be considered once the website it up. For now one program for a question is only entertained.

aarzoopundir commented 2 years ago

Okk

On Thu, 14 Oct 2021, 11:36 am SarthakKeshari, @.***> wrote:

@aarzoopundir https://github.com/aarzoopundir, Program updation and multiple responses will be considered once the website it up. For now one program for a question is only entertained.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/issues/418#issuecomment-942995381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJOJDGGPXIFWSFVJAQZRM3UGZXOPANCNFSM5F4JBLDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.