Skip to content

Day 46 #103

Closed
Closed

Description

@vaskoz

Good morning! Here's your coding interview problem for today.

This problem was asked by Amazon.

Given a string, find the longest palindromic contiguous substring. If there are more than one with the maximum length, return any one.

For example, the longest palindromic substring of "aabcdcb" is "bcdcb". The longest palindromic substring of "bananas" is "anana".

Activity

  1. self-assigned this
    on Oct 6, 2018
  2. vaskoz commented on Oct 6, 2018

    @vaskoz
    OwnerAuthor

    I found a very efficient solution, but I'll also include my brute force version: https://en.wikipedia.org/wiki/Longest_palindromic_substring

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions