125 valid palindrome내가 쓴 것:솔루션 중 하나문자열 슬라이싱에서 s::-1은 s에 담긴 문자열을 뒤집어 입력하는 것을 의미한다 (예: s = "하이루"가 있다면, s::-1 == 루이하)
내가 쓴 것:참고로 위 코드는 vscode에서 작성한 것. 리트코드에선 먹히지 않음.팔린드롬 읽는 거에서 슬라이싱 사용시 이용했던 ::-1 (거꾸로 읽기)를 사용한 걸 떠올리자. 이는 리스트에도 동일하게 적용된다.솔루션그냥 reverse() 함수를 쓰면 된다. 처음 코
제시문: You are given an array of logs. Each log is a space-delimited string of words, where the first word is the identifier. There are two types of l
Given an array of strings strs, group the anagrams together. You can return the answer in any order.An Anagram is a word or phrase formed by rearrangi
Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guaranteed there is at
Given a string s, return the longest palindromic substring in s. 역시나 못 풀었던 문제였다. 로직은 짰는데 사실상 brute-force식이었는데 그마저도 어떻게 구현해야할지 감이 도저히 안 와서 좌절했었는데, 원체