• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
cubking Avatar
Name:cub
Clan:Unknown
Member Since:Mar 2021
Last Seen:May 2021
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (4)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • kgashok
    • commented on "longest_palindrome" kata
    • 4 years ago

    @cubking, as to abcdefghba, the longest palindrome is only one character long.
    If it were abba, then the longest palindrome would be of length 4.
    If it were aa or bb, then the longest palindrome would be of length 2.
    I hope this helps.

  • Custom User Avatar
    • GN101
    • commented on "longest_palindrome" kata
    • 4 years ago

    .

  • Custom User Avatar
    • cubking
    • commented on "longest_palindrome" kata
    • 4 years ago

    I got 2

  • Custom User Avatar
    • cubking
    • commented on "longest_palindrome" kata
    • 4 years ago

    The return value of the parameter abcdefghba should be 2.

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...