
[LeetCode] 409. Longest Palindrome
·
코딩테스트/Python
🔗 Problem Link Longest Palindrome - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ❔Thinking 주어진 문자열의 문자들로 만들 수 있는 가장 긴 '펠린드롬 문자열'의 길이를 출력한다. '펠린드롬 문자열'은 가운데를 기준으로 좌우를 뒤집어도 동일한 문자열을 말한다. 모든 문자를 사용하지 않아도 된다. 💻Solution from collections import Counter class Solution: def longestPalin..