Longest Palindromic Substring - 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 나의 풀이 class Solution { public String longestPalindrome(String s) { String ans = String.valueOf(s.charAt(0)); String temp = ""; for (int i = 0; i < s.length() - 1; i++) { if (s.charAt(i) == s.charAt(i + ..