반응형 Computer/Algorithm88 [LeetCode] 125. Valid Palindrome - kotlin class Solution { fun isChar(c:Char):Boolean { return c.isLetter() || c.isDigit() } fun isPalindrome(s1: String): Boolean { var s = 0 var e = s1.length - 1 var str = s1.lowercase() while(se) return true s++ } while(!isChar(str[e])) { if(e-1 2025. 3. 2. 이전 1 ··· 3 4 5 6 7 8 9 ··· 88 다음 반응형