문자열) a = b 는 참조 / a\[:] = b 는 복사Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.문자, 숫자만
문자열) a = b 는 참조 / a\[:] = b 는 복사reverse() 함수 사용가장 Python 다운 방식Two-Pointer 보다 빠름reverse리스트 => reverse()문자열 => 슬라이싱 이용 s\[::-1] / s\[:] = s\[::-1]이 문제는
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 logs:Lett
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
https://leetcode.com/problems/group-anagrams/딕셔너리 key 값으로 정렬한 문자열을, value 값으로 원래 문자열을 저장마지막엔 value 값들만 returnsorted => 리스트를 반환s = sorted(strs\[i]
https://leetcode.com/problems/longest-palindromic-substring/문자열을 하나씩 뜯어서 p 에 붙여줌 => substringp 가 더 긴 palindrome 이면 self.ans update더 빠르게 하기 위해서 if
: 고정 사이즈의 윈도우가 이동하면서 윈도우 내에 있는 데이터를 이용해 문제를 풀이하는 알고리즘2 개의 네트워크 호스트 간의 패킷 흐름을 제어하기 위한 방법을 지칭하는 네트워크 용어이기도투 포인터와 유사투 포인터: 주로 정렬된 배열 대상, 윈도우 사이즈 가변, 좌우 포
76. Minimum Window Substring https://leetcode.com/problems/minimum-window-substring/ My Answer 1: Accepted ( > enumerate : (index, value) 를 튜플 형태로 반